[−][src]Enum casperlabs_contract_ffi::value::Value
Variants
Int32(i32)
UInt64(u64)
UInt128(U128)
UInt256(U256)
UInt512(U512)
ByteArray(Vec<u8>)
ListInt32(Vec<i32>)
String(String)
ListString(Vec<String>)
NamedKey(String, Key)
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]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[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.
fn try_from(v: Value) -> Result<i32, String>
[src]
impl TryFrom<Value> for u64
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<u64, String>
[src]
impl TryFrom<Value> for U128
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<U128, String>
[src]
impl TryFrom<Value> for U256
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<U256, String>
[src]
impl TryFrom<Value> for U512
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<U512, String>
[src]
impl TryFrom<Value> for Vec<u8>
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Vec<u8>, String>
[src]
impl TryFrom<Value> for Vec<i32>
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Vec<i32>, String>
[src]
impl TryFrom<Value> for Vec<String>
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Vec<String>, String>
[src]
impl TryFrom<Value> for String
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<String, String>
[src]
impl TryFrom<Value> for Key
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Key, String>
[src]
impl TryFrom<Value> for Account
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Account, String>
[src]
impl TryFrom<Value> for Contract
[src]
type Error = String
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Contract, String>
[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 TryFrom<Value> for ()
[src]
type Error = ()
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<(), ()>
[src]
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]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> 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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> 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,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self