pub struct Asset { /* private fields */ }
Implementations§
Source§impl Asset
impl Asset
pub fn get_chain(&self) -> &str
pub fn get_symbol(&self) -> &str
pub fn get_ticker(&self) -> &str
pub fn get_asset_type(&self) -> &str
pub fn get_network(&self) -> &str
pub fn get_name(&self) -> &str
pub const fn get_decimal(&self) -> Decimal
pub const fn is_synth(&self) -> bool
pub const fn get_is_synth(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Asset
impl<'de> Deserialize<'de> for Asset
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
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
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