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

pub enum Value {
    Int32(i32),
    ByteArray(Vec<u8>),
    ListInt32(Vec<i32>),
    String(String),
    ListString(Vec<String>),
    NamedKey(StringKey),
    Account(Account),
    Contract(Contract),
}

Variants

Int32(i32)ByteArray(Vec<u8>)ListInt32(Vec<i32>)String(String)ListString(Vec<String>)NamedKey(StringKey)Account(Account)Contract(Contract)

Methods

impl Value[src]

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

pub fn as_account(&self) -> &Account[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 From<i32> 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<Account> for Value[src]

impl From<Contract> for Value[src]

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

impl TryFrom<Value> for i32[src]

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

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

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<Value> for String[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<Value> for Account[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<Value> for Contract[src]

type Error = ()

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 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 Send for Value

impl Sync for Value

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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, U> Into for T where
    U: From<T>, 
[src]

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

impl<T> BorrowMut 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