pub struct Collateral {
pub currency: String,
pub hourly_borrow_rate: String,
pub max_borrowing_amount: String,
pub free_borrowing_amount: String,
pub free_borrow_limit: String,
pub borrow_usable_switch: bool,
pub collateral_switch: bool,
pub collateral_ratio: String,
}Expand description
Collateral.
Fields§
§currency: StringCurrency
hourly_borrow_rate: StringHourly borrow rate
max_borrowing_amount: StringMax borrow amount
free_borrowing_amount: StringFree borrow amount
free_borrow_limit: StringFree borrow limit
borrow_usable_switch: boolBorrow usable switch
collateral_switch: boolCollateral switch
collateral_ratio: StringCollateral ratio
Trait Implementations§
Source§impl Clone for Collateral
impl Clone for Collateral
Source§fn clone(&self) -> Collateral
fn clone(&self) -> Collateral
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 Collateral
impl Debug for Collateral
Source§impl<'de> Deserialize<'de> for Collateral
impl<'de> Deserialize<'de> for Collateral
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 Collateral
impl RefUnwindSafe for Collateral
impl Send for Collateral
impl Sync for Collateral
impl Unpin for Collateral
impl UnsafeUnpin for Collateral
impl UnwindSafe for Collateral
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