Enum cadence_json::ValueRef[][src]

pub enum ValueRef<'a> {
Show 35 variants Void, Int(BigInt), Int8(i8), Int16(i16), Int32(i32), Int64(i64), Int128(i128), Int256(BigInt), UInt(BigUint), UInt8(u8), UInt16(u16), UInt32(u32), UInt64(u64), UInt128(u128), UInt256(BigUint), Fix64(Fix64), UFix64(UFix64), Word8(Wrapping<u8>), Word16(Wrapping<u16>), Word32(Wrapping<u32>), Word64(Wrapping<u64>), Bool(bool), Optional(Option<Box<ValueRef<'a>>>), String(&'a str), Address(AddressRef<'a>), Array(&'a [ValueRef<'a>]), Dictionary(&'a [EntryRef<'a>]), Struct(CompositeRef<'a>), Resource(CompositeRef<'a>), Event(CompositeRef<'a>), Contract(CompositeRef<'a>), Enum(CompositeRef<'a>), Path(PathRef<'a>), Type(&'a str), Capability(CapabilityRef<'a>),
}

Variants

Void
Int(BigInt)

Tuple Fields of Int

0: BigInt
Int8(i8)

Tuple Fields of Int8

0: i8
Int16(i16)

Tuple Fields of Int16

0: i16
Int32(i32)

Tuple Fields of Int32

0: i32
Int64(i64)

Tuple Fields of Int64

0: i64
Int128(i128)

Tuple Fields of Int128

0: i128
Int256(BigInt)

Tuple Fields of Int256

0: BigInt
UInt(BigUint)

Tuple Fields of UInt

0: BigUint
UInt8(u8)

Tuple Fields of UInt8

0: u8
UInt16(u16)

Tuple Fields of UInt16

0: u16
UInt32(u32)

Tuple Fields of UInt32

0: u32
UInt64(u64)

Tuple Fields of UInt64

0: u64
UInt128(u128)

Tuple Fields of UInt128

0: u128
UInt256(BigUint)

Tuple Fields of UInt256

0: BigUint
Fix64(Fix64)

Tuple Fields of Fix64

0: Fix64
UFix64(UFix64)

Tuple Fields of UFix64

0: UFix64
Word8(Wrapping<u8>)

Tuple Fields of Word8

0: Wrapping<u8>
Word16(Wrapping<u16>)

Tuple Fields of Word16

0: Wrapping<u16>
Word32(Wrapping<u32>)

Tuple Fields of Word32

0: Wrapping<u32>
Word64(Wrapping<u64>)

Tuple Fields of Word64

0: Wrapping<u64>
Bool(bool)

Tuple Fields of Bool

0: bool
Optional(Option<Box<ValueRef<'a>>>)

Tuple Fields of Optional

0: Option<Box<ValueRef<'a>>>
String(&'a str)

Tuple Fields of String

0: &'a str
Address(AddressRef<'a>)

Tuple Fields of Address

0: AddressRef<'a>
Array(&'a [ValueRef<'a>])

Tuple Fields of Array

0: &'a [ValueRef<'a>]
Dictionary(&'a [EntryRef<'a>])

Tuple Fields of Dictionary

0: &'a [EntryRef<'a>]
Struct(CompositeRef<'a>)

Tuple Fields of Struct

0: CompositeRef<'a>
Resource(CompositeRef<'a>)

Tuple Fields of Resource

0: CompositeRef<'a>
Event(CompositeRef<'a>)

Tuple Fields of Event

0: CompositeRef<'a>
Contract(CompositeRef<'a>)

Tuple Fields of Contract

0: CompositeRef<'a>
Enum(CompositeRef<'a>)

Tuple Fields of Enum

0: CompositeRef<'a>
Path(PathRef<'a>)

Tuple Fields of Path

0: PathRef<'a>
Type(&'a str)

Tuple Fields of Type

0: &'a str
Capability(CapabilityRef<'a>)

Tuple Fields of Capability

0: CapabilityRef<'a>

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.