Trait web3::contract::tokens::Tokenizable
[−]
[src]
pub trait Tokenizable {
fn from_token(token: Token) -> Result<Self, Error>
where
Self: Sized;
fn into_token(self) -> Token;
}Simplified output type for single value.
Required Methods
fn from_token(token: Token) -> Result<Self, Error> where
Self: Sized,
Self: Sized,
Converts a Token into expected type.
fn into_token(self) -> Token
Converts a specified type back into token.