pub struct CollateralInfo {
pub currency: String,
pub hourly_borrow_rate: String,
pub max_borrowing_amount: String,
pub free_borrow_amount: Option<String>,
pub free_borrowing_limit: Option<String>,
pub borrow_amount: Option<String>,
pub available_to_borrow: Option<String>,
pub borrowable: bool,
pub borrow_usage_rate: Option<String>,
pub margin_collateral: Option<bool>,
pub collateral_switch: Option<bool>,
pub collateral_ratio: Option<String>,
}Expand description
Collateral information.
Fields§
§currency: StringCurrency.
hourly_borrow_rate: StringHourly borrow rate.
max_borrowing_amount: StringMax borrowing amount.
free_borrow_amount: Option<String>Free borrow amount.
free_borrowing_limit: Option<String>Free borrowing limit.
borrow_amount: Option<String>Borrow amount.
available_to_borrow: Option<String>Available to borrow.
borrowable: boolIs borrowable.
borrow_usage_rate: Option<String>Borrow usage rate.
margin_collateral: Option<bool>Margin collateral.
collateral_switch: Option<bool>Collateral switch.
collateral_ratio: Option<String>Collateral ratio.
Trait Implementations§
Source§impl Clone for CollateralInfo
impl Clone for CollateralInfo
Source§fn clone(&self) -> CollateralInfo
fn clone(&self) -> CollateralInfo
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 CollateralInfo
impl Debug for CollateralInfo
Source§impl<'de> Deserialize<'de> for CollateralInfo
impl<'de> Deserialize<'de> for CollateralInfo
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 CollateralInfo
impl RefUnwindSafe for CollateralInfo
impl Send for CollateralInfo
impl Sync for CollateralInfo
impl Unpin for CollateralInfo
impl UnwindSafe for CollateralInfo
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