Struct token_list::TokenList [−][src]
pub struct TokenList {
pub name: String,
pub timestamp: DateTime<FixedOffset>,
pub version: Version,
pub logo_uri: Option<Url>,
pub keywords: Vec<String>,
pub tags: HashMap<String, Tag>,
pub tokens: Vec<Token>,
}
Expand description
A list of Ethereum token metadata conforming to the token list schema.
Fields
name: String
The name of the token list
timestamp: DateTime<FixedOffset>
The timestamp of this list version; i.e. when this immutable version of the list was created
version: Version
The version of the list, used in change detection
logo_uri: Option<Url>
A URI for the logo of the token list; prefer SVG or PNG of size 256x256
keywords: Vec<String>
Keywords associated with the contents of the list; may be used in list discoverability
A mapping of tag identifiers to their name and description
tokens: Vec<Token>
The list of tokens included in the list
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TokenList
impl UnwindSafe for TokenList
Blanket Implementations
Mutably borrows from an owned value. Read more