pub struct Metadata {
pub description: Option<String>,
pub denom_units: Vec<DenomUnit>,
pub base: Option<String>,
pub display: Option<String>,
pub name: Option<String>,
pub symbol: Option<String>,
}
Expand description
This maps to cosmos.bank.v1beta1.Metadata protobuf struct
Fields§
§description: Option<String>
§denom_units: Vec<DenomUnit>
denom_units represents the list of DenomUnit’s for a given coin
base: Option<String>
base represents the base denom (should be the DenomUnit with exponent = 0).
display: Option<String>
display indicates the suggested denom that should be displayed in clients.
name: Option<String>
name defines the name of the token (eg: Cosmos Atom)
symbol: Option<String>
symbol is the token symbol usually shown on exchanges (eg: ATOM). This can be the same as the display.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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 Metadata
impl JsonSchema for Metadata
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 Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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