ic_web3_rs::contract::tokens

Trait Tokenizable

Source
pub trait Tokenizable {
    // Required methods
    fn from_token(token: Token) -> Result<Self, Error>
       where Self: Sized;
    fn into_token(self) -> Token;
}
Expand description

Simplified output type for single value.

Required Methods§

Source

fn from_token(token: Token) -> Result<Self, Error>
where Self: Sized,

Converts a Token into expected type.

Source

fn into_token(self) -> Token

Converts a specified type back into token.

Implementations on Foreign Types§

Source§

impl Tokenizable for Token

Source§

impl Tokenizable for bool

Source§

impl Tokenizable for i8

Source§

impl Tokenizable for i16

Source§

impl Tokenizable for i32

Source§

impl Tokenizable for i64

Source§

impl Tokenizable for i128

Source§

impl Tokenizable for u8

Source§

impl Tokenizable for u16

Source§

impl Tokenizable for u32

Source§

impl Tokenizable for u64

Source§

impl Tokenizable for u128

Source§

impl Tokenizable for String

Source§

impl Tokenizable for Vec<u8>

Source§

impl Tokenizable for [u8; 1]

Source§

impl Tokenizable for [u8; 2]

Source§

impl Tokenizable for [u8; 3]

Source§

impl Tokenizable for [u8; 4]

Source§

impl Tokenizable for [u8; 5]

Source§

impl Tokenizable for [u8; 6]

Source§

impl Tokenizable for [u8; 7]

Source§

impl Tokenizable for [u8; 8]

Source§

impl Tokenizable for [u8; 9]

Source§

impl Tokenizable for [u8; 10]

Source§

impl Tokenizable for [u8; 11]

Source§

impl Tokenizable for [u8; 12]

Source§

impl Tokenizable for [u8; 13]

Source§

impl Tokenizable for [u8; 14]

Source§

impl Tokenizable for [u8; 15]

Source§

impl Tokenizable for [u8; 16]

Source§

impl Tokenizable for [u8; 32]

Source§

impl Tokenizable for [u8; 64]

Source§

impl Tokenizable for [u8; 128]

Source§

impl Tokenizable for [u8; 256]

Source§

impl Tokenizable for [u8; 512]

Source§

impl Tokenizable for [u8; 1024]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 1]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 2]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 3]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 4]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 5]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 6]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 7]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 8]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 9]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 10]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 11]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 12]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 13]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 14]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 15]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 16]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 32]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 64]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 128]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 256]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 512]

Source§

impl<T: TokenizableItem + Clone> Tokenizable for [T; 1024]

Source§

impl<T: TokenizableItem> Tokenizable for Vec<T>

Implementors§