pub enum GenericValue {
Show 16 variants
BoolContent(bool),
TextContent(String),
BlobContent(Vec<u8>),
Principal(Principal),
Nat8Content(u8),
Nat16Content(u16),
Nat32Content(u32),
Nat64Content(u64),
NatContent(Nat),
Int8Content(i8),
Int16Content(i16),
Int32Content(i32),
Int64Content(i64),
IntContent(Int),
FloatContent(f64),
NestedContent(Vec<(String, GenericValue)>),
}
Expand description
Properties value representation for a token
Variants§
BoolContent(bool)
TextContent(String)
BlobContent(Vec<u8>)
Principal(Principal)
Nat8Content(u8)
Nat16Content(u16)
Nat32Content(u32)
Nat64Content(u64)
NatContent(Nat)
Int8Content(i8)
Int16Content(i16)
Int32Content(i32)
Int64Content(i64)
IntContent(Int)
FloatContent(f64)
NestedContent(Vec<(String, GenericValue)>)
Trait Implementations§
Source§impl CandidType for GenericValue
impl CandidType for GenericValue
Source§impl Clone for GenericValue
impl Clone for GenericValue
Source§fn clone(&self) -> GenericValue
fn clone(&self) -> GenericValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GenericValue
impl Debug for GenericValue
Source§impl<'de> Deserialize<'de> for GenericValue
impl<'de> Deserialize<'de> for GenericValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GenericValue
impl PartialEq for GenericValue
Source§impl Serialize for GenericValue
impl Serialize for GenericValue
impl StructuralPartialEq for GenericValue
Auto Trait Implementations§
impl Freeze for GenericValue
impl RefUnwindSafe for GenericValue
impl Send for GenericValue
impl Sync for GenericValue
impl Unpin for GenericValue
impl UnwindSafe for GenericValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more