Enum cadence_json::ValueOwned [−][src]
pub enum ValueOwned {
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<ValueOwned>>),
String(String),
Address(AddressOwned),
Array(Vec<ValueOwned>),
Dictionary(Vec<EntryOwned>),
Struct(CompositeOwned),
Resource(CompositeOwned),
Event(CompositeOwned),
Contract(CompositeOwned),
Enum(CompositeOwned),
Path(PathOwned),
Type(String),
Capability(CapabilityOwned),
}
Expand description
An owned Cadence value.
Variants
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
Bool(bool)
Tuple Fields of Bool
0: bool
Optional(Option<Box<ValueOwned>>)
Tuple Fields of Optional
0: Option<Box<ValueOwned>>
String(String)
Tuple Fields of String
0: String
Address(AddressOwned)
Tuple Fields of Address
0: AddressOwned
Array(Vec<ValueOwned>)
Tuple Fields of Array
0: Vec<ValueOwned>
Dictionary(Vec<EntryOwned>)
Tuple Fields of Dictionary
0: Vec<EntryOwned>
Struct(CompositeOwned)
Tuple Fields of Struct
Resource(CompositeOwned)
Tuple Fields of Resource
Event(CompositeOwned)
Tuple Fields of Event
Contract(CompositeOwned)
Tuple Fields of Contract
Enum(CompositeOwned)
Tuple Fields of Enum
Path(PathOwned)
Tuple Fields of Path
0: PathOwned
Type(String)
Tuple Fields of Type
0: String
Capability(CapabilityOwned)
Tuple Fields of Capability
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ValueOwned
impl Send for ValueOwned
impl Sync for ValueOwned
impl Unpin for ValueOwned
impl UnwindSafe for ValueOwned
Blanket Implementations
Mutably borrows from an owned value. Read more