pub struct BalancesAsset {
pub decimals: i64,
pub name: String,
pub symbol: Asset,
pub type_: AssetType,
}Expand description
An asset, e.g. fiat or crypto.
JSON schema
{
"description": "An asset, e.g. fiat or crypto.",
"examples": [
{
"decimals": 8,
"name": "Bitcoin",
"symbol": "btc",
"type": "crypto"
}
],
"type": "object",
"required": [
"decimals",
"name",
"symbol",
"type"
],
"properties": {
"decimals": {
"description": "The number of decimals (i.e. significant digits to the right of the decimal point) supported for the asset.",
"type": "integer"
},
"name": {
"description": "The name of the asset.",
"type": "string"
},
"symbol": {
"$ref": "#/components/schemas/Asset"
},
"type": {
"$ref": "#/components/schemas/AssetType"
}
}
}Fields§
§decimals: i64The number of decimals (i.e. significant digits to the right of the decimal point) supported for the asset.
name: StringThe name of the asset.
symbol: Asset§type_: AssetTypeImplementations§
Source§impl BalancesAsset
impl BalancesAsset
pub fn builder() -> BalancesAsset
Trait Implementations§
Source§impl Clone for BalancesAsset
impl Clone for BalancesAsset
Source§fn clone(&self) -> BalancesAsset
fn clone(&self) -> BalancesAsset
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 BalancesAsset
impl Debug for BalancesAsset
Source§impl<'de> Deserialize<'de> for BalancesAsset
impl<'de> Deserialize<'de> for BalancesAsset
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<&BalancesAsset> for BalancesAsset
impl From<&BalancesAsset> for BalancesAsset
Source§fn from(value: &BalancesAsset) -> Self
fn from(value: &BalancesAsset) -> Self
Converts to this type from the input type.
Source§impl From<BalancesAsset> for BalancesAsset
impl From<BalancesAsset> for BalancesAsset
Source§fn from(value: BalancesAsset) -> Self
fn from(value: BalancesAsset) -> Self
Converts to this type from the input type.
Source§impl Serialize for BalancesAsset
impl Serialize for BalancesAsset
Source§impl TryFrom<BalancesAsset> for BalancesAsset
impl TryFrom<BalancesAsset> for BalancesAsset
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: BalancesAsset) -> Result<Self, ConversionError>
fn try_from(value: BalancesAsset) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BalancesAsset
impl RefUnwindSafe for BalancesAsset
impl Send for BalancesAsset
impl Sync for BalancesAsset
impl Unpin for BalancesAsset
impl UnsafeUnpin for BalancesAsset
impl UnwindSafe for BalancesAsset
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