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§
Source§impl<'de> Deserialize<'de> for TokenList
impl<'de> Deserialize<'de> for TokenList
Source§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
Source§impl JsonSchema for TokenList
impl JsonSchema for TokenList
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl StructuralPartialEq for TokenList
Auto Trait Implementations§
impl Freeze for TokenList
impl RefUnwindSafe for TokenList
impl Send for TokenList
impl Sync for TokenList
impl Unpin for TokenList
impl UnwindSafe for TokenList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more