pub struct TokenTranslations {
pub name_zhcn: Option<String>,
pub symbol_zhcn: Option<String>,
pub trans_name: Option<String>,
pub trans_symbol: Option<String>,
}Expand description
Token translations for multi-locale display (e.g. Chinese markets).
Sourced from CoinGecko /coins/{id} localization or community data.
JSON schema
{
"description": "Token translations for multi-locale display (e.g. Chinese markets).\nSourced from CoinGecko `/coins/{id}` localization or community data.",
"type": "object",
"properties": {
"nameZhcn": {
"type": "string"
},
"symbolZhcn": {
"type": "string"
},
"transName": {
"type": "string"
},
"transSymbol": {
"type": "string"
}
}
}Fields§
§name_zhcn: Option<String>§symbol_zhcn: Option<String>§trans_name: Option<String>§trans_symbol: Option<String>Implementations§
Source§impl TokenTranslations
impl TokenTranslations
pub fn builder() -> TokenTranslations
Trait Implementations§
Source§impl Clone for TokenTranslations
impl Clone for TokenTranslations
Source§fn clone(&self) -> TokenTranslations
fn clone(&self) -> TokenTranslations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenTranslations
impl Debug for TokenTranslations
Source§impl Default for TokenTranslations
impl Default for TokenTranslations
Source§impl<'de> Deserialize<'de> for TokenTranslations
impl<'de> Deserialize<'de> for TokenTranslations
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 From<&TokenTranslations> for TokenTranslations
impl From<&TokenTranslations> for TokenTranslations
Source§fn from(value: &TokenTranslations) -> Self
fn from(value: &TokenTranslations) -> Self
Converts to this type from the input type.
Source§impl From<TokenTranslations> for TokenTranslations
impl From<TokenTranslations> for TokenTranslations
Source§fn from(value: TokenTranslations) -> Self
fn from(value: TokenTranslations) -> Self
Converts to this type from the input type.
Source§impl Serialize for TokenTranslations
impl Serialize for TokenTranslations
Source§impl TryFrom<TokenTranslations> for TokenTranslations
impl TryFrom<TokenTranslations> for TokenTranslations
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TokenTranslations) -> Result<Self, ConversionError>
fn try_from(value: TokenTranslations) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TokenTranslations
impl RefUnwindSafe for TokenTranslations
impl Send for TokenTranslations
impl Sync for TokenTranslations
impl Unpin for TokenTranslations
impl UnsafeUnpin for TokenTranslations
impl UnwindSafe for TokenTranslations
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