[][src]Enum casperlabs_contract_ffi::value::Value

pub enum Value {
    Int32(i32),
    UInt64(u64),
    UInt128(U128),
    UInt256(U256),
    UInt512(U512),
    ByteArray(Vec<u8>),
    ListInt32(Vec<i32>),
    String(String),
    ListString(Vec<String>),
    NamedKey(StringKey),
    Key(Key),
    Account(Account),
    Contract(Contract),
    Unit,
}

Variants

Int32(i32)UInt64(u64)UInt128(U128)UInt256(U256)UInt512(U512)ByteArray(Vec<u8>)ListInt32(Vec<i32>)String(String)ListString(Vec<String>)NamedKey(StringKey)Key(Key)Account(Account)Contract(Contract)Unit

Methods

impl Value[src]

pub fn type_string(&self) -> String[src]

Trait Implementations

impl ToBytes for Value[src]

impl FromBytes for Value[src]

impl Debug for Value[src]

impl PartialEq<Value> for Value[src]

impl Eq for Value[src]

impl TryFrom<Value> for i32[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for u64[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for U128[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for U256[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for U512[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for Vec<u8>[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for Vec<i32>[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for Vec<String>[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for String[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for Key[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for Account[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for Contract[src]

type Error = String

The type returned in the event of a conversion error.

impl TryFrom<Value> for (String, Key)[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<Value> for ()[src]

type Error = ()

The type returned in the event of a conversion error.

impl From<i32> for Value[src]

impl From<u64> for Value[src]

impl From<U128> for Value[src]

impl From<U256> for Value[src]

impl From<U512> for Value[src]

impl From<Vec<u8>> for Value[src]

impl From<Vec<i32>> for Value[src]

impl From<Vec<String>> for Value[src]

impl From<String> for Value[src]

impl From<Key> for Value[src]

impl From<Account> for Value[src]

impl From<Contract> for Value[src]

impl From<URef> for Value[src]

impl From<(String, Key)> for Value[src]

impl From<()> for Value[src]

impl Clone for Value[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for Value

impl Sync for Value

impl Send for Value

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> Same<T> for T

type Output = T

Should always be Self