pub struct AssetTypeResponse {
pub id: String,
pub name: String,
pub type: Type,
pub contract_address: Option<String>,
pub native_asset: Option<String>,
pub decimals: Option<f64>,
}
Expand description
AssetTypeResponse : Supported Asset Object
Fields§
§id: String
Unique asset identifier
name: String
The name of the asset
type: Type
Asset type
contract_address: Option<String>
Contract address of EVM based tokens
native_asset: Option<String>
The native asset ID
decimals: Option<f64>
Decimals of the asset
Implementations§
Trait Implementations§
Source§impl Clone for AssetTypeResponse
impl Clone for AssetTypeResponse
Source§fn clone(&self) -> AssetTypeResponse
fn clone(&self) -> AssetTypeResponse
Returns a copy of the value. Read more
1.0.0 · 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 AssetTypeResponse
impl Debug for AssetTypeResponse
Source§impl Default for AssetTypeResponse
impl Default for AssetTypeResponse
Source§fn default() -> AssetTypeResponse
fn default() -> AssetTypeResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssetTypeResponse
impl<'de> Deserialize<'de> for AssetTypeResponse
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 PartialEq for AssetTypeResponse
impl PartialEq for AssetTypeResponse
Source§impl Serialize for AssetTypeResponse
impl Serialize for AssetTypeResponse
impl StructuralPartialEq for AssetTypeResponse
Auto Trait Implementations§
impl Freeze for AssetTypeResponse
impl RefUnwindSafe for AssetTypeResponse
impl Send for AssetTypeResponse
impl Sync for AssetTypeResponse
impl Unpin for AssetTypeResponse
impl UnwindSafe for AssetTypeResponse
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