Enum cap_sdk::DetailValue
[−]pub enum DetailValue {
True,
False,
U64(u64),
I64(i64),
Float(f64),
Text(String),
Principal(Principal),
Slice(Vec<u8, Global>),
Vec(Vec<DetailValue, Global>),
TokenIdU64(u64),
}Variants
True
False
U64(u64)
I64(i64)
Float(f64)
Text(String)
Principal(Principal)
Slice(Vec<u8, Global>)
Vec(Vec<DetailValue, Global>)
TokenIdU64(u64)
Trait Implementations
impl CandidType for DetailValue
impl CandidType for DetailValue
impl Clone for DetailValue
impl Clone for DetailValue
fn clone(&self) -> DetailValue
fn clone(&self) -> DetailValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl Debug for DetailValue
impl Debug for DetailValue
impl<'de> Deserialize<'de> for DetailValue
impl<'de> Deserialize<'de> for DetailValue
fn deserialize<__D>(
__deserializer: __D
) -> Result<DetailValue, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DetailValue, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<Nat> for DetailValue
impl From<Nat> for DetailValue
fn from(nat: Nat) -> DetailValue
fn from(nat: Nat) -> DetailValue
Converts to this type from the input type.
impl From<Principal> for DetailValue
impl From<Principal> for DetailValue
fn from(principal: Principal) -> DetailValue
fn from(principal: Principal) -> DetailValue
Converts to this type from the input type.
impl From<String> for DetailValue
impl From<String> for DetailValue
fn from(string: String) -> DetailValue
fn from(string: String) -> DetailValue
Converts to this type from the input type.
impl From<f64> for DetailValue
impl From<f64> for DetailValue
fn from(float: f64) -> DetailValue
fn from(float: f64) -> DetailValue
Converts to this type from the input type.
impl From<i64> for DetailValue
impl From<i64> for DetailValue
fn from(num: i64) -> DetailValue
fn from(num: i64) -> DetailValue
Converts to this type from the input type.
impl From<u64> for DetailValue
impl From<u64> for DetailValue
fn from(num: u64) -> DetailValue
fn from(num: u64) -> DetailValue
Converts to this type from the input type.
impl Serialize for DetailValue
impl Serialize for DetailValue
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
impl TryInto<Nat> for DetailValue
impl TryInto<Nat> for DetailValue
impl TryInto<Principal> for DetailValue
impl TryInto<Principal> for DetailValue
impl TryInto<String> for DetailValue
impl TryInto<String> for DetailValue
impl TryInto<f64> for DetailValue
impl TryInto<f64> for DetailValue
impl TryInto<i64> for DetailValue
impl TryInto<i64> for DetailValue
Auto Trait Implementations
impl RefUnwindSafe for DetailValue
impl Send for DetailValue
impl Sync for DetailValue
impl Unpin for DetailValue
impl UnwindSafe for DetailValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more