Enum flow_sdk::prelude::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, Global>>),
String(String),
Address(AddressOwned),
Array(Vec<ValueOwned, Global>),
Dictionary(Vec<EntryOwned, Global>),
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, Global>>)
Tuple Fields of Optional
0: Option<Box<ValueOwned, Global>>
String(String)
Tuple Fields of String
0: String
Address(AddressOwned)
Tuple Fields of Address
0: AddressOwned
Array(Vec<ValueOwned, Global>)
Tuple Fields of Array
0: Vec<ValueOwned, Global>
Dictionary(Vec<EntryOwned, Global>)
Tuple Fields of Dictionary
0: Vec<EntryOwned, Global>
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
pub fn deserialize<D>(
deserializer: D
) -> Result<ValueOwned, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<ValueOwned, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
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 !=
.
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more