pub struct LendingAsset { /* private fields */ }
Implementations§
Source§impl LendingAsset
impl LendingAsset
pub fn get_asset(&self) -> &str
pub const fn get_asset_depth_asset_amount(&self) -> Decimal
pub const fn get_rune_depth_asset_amount(&self) -> Decimal
pub const fn get_loan_cr(&self) -> Decimal
pub const fn get_loan_collateral(&self) -> Decimal
pub const fn is_lending_available(&self) -> bool
pub const fn get_filled_percentage(&self) -> Decimal
pub const fn get_derived_depth_percentage(&self) -> Decimal
pub const fn get_ltv_percentage(&self) -> Option<Decimal>
Trait Implementations§
Source§impl Clone for LendingAsset
impl Clone for LendingAsset
Source§fn clone(&self) -> LendingAsset
fn clone(&self) -> LendingAsset
Returns a duplicate 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 LendingAsset
impl Debug for LendingAsset
Source§impl<'de> Deserialize<'de> for LendingAsset
impl<'de> Deserialize<'de> for LendingAsset
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 LendingAsset
impl RefUnwindSafe for LendingAsset
impl Send for LendingAsset
impl Sync for LendingAsset
impl Unpin for LendingAsset
impl UnwindSafe for LendingAsset
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