pub struct AssetDraft {
pub id: String,
pub class: String,
pub network: Option<String>,
pub native_id: Option<String>,
pub precision: u8,
pub name: String,
}Fields§
§id: String§class: StringOne of: fiat, crypto. Crypto requires network; native_id
distinguishes tokens from the chain’s base coin.
network: Option<String>§native_id: Option<String>§precision: u8§name: StringTrait Implementations§
Source§impl Clone for AssetDraft
impl Clone for AssetDraft
Source§fn clone(&self) -> AssetDraft
fn clone(&self) -> AssetDraft
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 AssetDraft
impl Debug for AssetDraft
Source§impl<'de> Deserialize<'de> for AssetDraft
impl<'de> Deserialize<'de> for AssetDraft
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssetDraft, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AssetDraft, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AssetDraft
impl Serialize for AssetDraft
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AssetDraft
impl RefUnwindSafe for AssetDraft
impl Send for AssetDraft
impl Sync for AssetDraft
impl Unpin for AssetDraft
impl UnsafeUnpin for AssetDraft
impl UnwindSafe for AssetDraft
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