DetailValue

Enum DetailValue 

Source
pub enum DetailValue {
    True,
    False,
    U64(u64),
    I64(i64),
    Float(f64),
    Text(String),
    Principal(Principal),
    Slice(Vec<u8>),
    Vec(Vec<DetailValue>),
    TokenIdU64(u64),
}

Variants§

§

True

§

False

§

U64(u64)

§

I64(i64)

§

Float(f64)

§

Text(String)

§

Principal(Principal)

§

Slice(Vec<u8>)

§

Vec(Vec<DetailValue>)

§

TokenIdU64(u64)

Trait Implementations§

Source§

impl CandidType for DetailValue

Source§

fn _ty() -> Type

Source§

fn id() -> TypeId

Source§

fn idl_serialize<__S>( &self, __serializer: __S, ) -> Result<(), <__S as Serializer>::Error>
where __S: Serializer,

Source§

fn ty() -> Type

Source§

impl Clone for DetailValue

Source§

fn clone(&self) -> DetailValue

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DetailValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DetailValue

Source§

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
Source§

impl From<Nat> for DetailValue

Source§

fn from(nat: Nat) -> DetailValue

Converts to this type from the input type.
Source§

impl From<Principal> for DetailValue

Source§

fn from(principal: Principal) -> DetailValue

Converts to this type from the input type.
Source§

impl From<String> for DetailValue

Source§

fn from(string: String) -> DetailValue

Converts to this type from the input type.
Source§

impl From<f64> for DetailValue

Source§

fn from(float: f64) -> DetailValue

Converts to this type from the input type.
Source§

impl From<i64> for DetailValue

Source§

fn from(num: i64) -> DetailValue

Converts to this type from the input type.
Source§

impl From<u64> for DetailValue

Source§

fn from(num: u64) -> DetailValue

Converts to this type from the input type.
Source§

impl Serialize for DetailValue

Source§

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
Source§

impl TryInto<Nat> for DetailValue

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Nat, <DetailValue as TryInto<Nat>>::Error>

Performs the conversion.
Source§

impl TryInto<Principal> for DetailValue

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<Principal, <DetailValue as TryInto<Principal>>::Error>

Performs the conversion.
Source§

impl TryInto<String> for DetailValue

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<String, <DetailValue as TryInto<String>>::Error>

Performs the conversion.
Source§

impl TryInto<f64> for DetailValue

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<f64, <DetailValue as TryInto<f64>>::Error>

Performs the conversion.
Source§

impl TryInto<i64> for DetailValue

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<i64, <DetailValue as TryInto<i64>>::Error>

Performs the conversion.
Source§

impl TryInto<u64> for DetailValue

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<u64, <DetailValue as TryInto<u64>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,