[−][src]Enum casperlabs_contract_ffi::value::Value
Variants
Int32(i32)
ByteArray(Vec<u8>)
ListInt32(Vec<i32>)
String(String)
ListString(Vec<String>)
NamedKey(String, Key)
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]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[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 Debug for Value
[src]
impl TryFrom<Value> for i32
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<i32, ()>
[src]
impl TryFrom<Value> for Vec<u8>
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Vec<u8>, ()>
[src]
impl TryFrom<Value> for Vec<i32>
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Vec<i32>, ()>
[src]
impl TryFrom<Value> for Vec<String>
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Vec<String>, ()>
[src]
impl TryFrom<Value> for String
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<String, ()>
[src]
impl TryFrom<Value> for Account
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Account, ()>
[src]
impl TryFrom<Value> for Contract
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Contract, ()>
[src]
impl TryFrom<Value> for (String, Key)
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<(String, Key), ()>
[src]
impl Clone for Value
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,