Struct swapkit_rs::CachedPrice
source · pub struct CachedPrice { /* private fields */ }Implementations§
source§impl CachedPrice
impl CachedPrice
pub const fn get_identifier(&self) -> &String
pub const fn get_provider(&self) -> &Option<String>
pub const fn get_cg(&self) -> &CachedPriceCG
pub const fn get_price_usd(&self) -> Decimal
pub const fn get_timestamp(&self) -> Decimal
Trait Implementations§
source§impl Clone for CachedPrice
impl Clone for CachedPrice
source§fn clone(&self) -> CachedPrice
fn clone(&self) -> CachedPrice
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 CachedPrice
impl Debug for CachedPrice
source§impl<'de> Deserialize<'de> for CachedPrice
impl<'de> Deserialize<'de> for CachedPrice
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 CachedPrice
impl RefUnwindSafe for CachedPrice
impl Send for CachedPrice
impl Sync for CachedPrice
impl Unpin for CachedPrice
impl UnwindSafe for CachedPrice
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