pub struct BorrowInterest {
pub symbol: Option<String>,
pub currency: Option<String>,
pub interest: Option<f64>,
pub interest_rate: Option<f64>,
pub amount_borrowed: Option<f64>,
pub margin_mode: Option<String>,
pub timestamp: Option<i64>,
pub datetime: Option<String>,
pub raw: Value,
}Expand description
Unified borrow-interest record (margin interest accrued on a borrow).
Distinct from BorrowRate — it carries accrued interest and the borrowed
amount, not a periodic rate (review #7: fetchBorrowInterest was wrongly
mapped to BorrowRate).
Fields§
§symbol: Option<String>§currency: Option<String>§interest: Option<f64>§interest_rate: Option<f64>§amount_borrowed: Option<f64>§margin_mode: Option<String>§timestamp: Option<i64>§datetime: Option<String>§raw: ValueImplementations§
Source§impl BorrowInterest
impl BorrowInterest
pub fn from_value(v: Value) -> BorrowInterest
Trait Implementations§
Source§impl Clone for BorrowInterest
impl Clone for BorrowInterest
Source§fn clone(&self) -> BorrowInterest
fn clone(&self) -> BorrowInterest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BorrowInterest
impl Debug for BorrowInterest
Source§impl Default for BorrowInterest
impl Default for BorrowInterest
Source§fn default() -> BorrowInterest
fn default() -> BorrowInterest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for BorrowInterest
impl Freeze for BorrowInterest
impl Move for BorrowInterest
impl RefUnwindSafe for BorrowInterest
impl Send for BorrowInterest
impl Sync for BorrowInterest
impl Unpin for BorrowInterest
impl UnsafeUnpin for BorrowInterest
impl UnwindSafe for BorrowInterest
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