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) -> Self
Trait Implementations§
Source§impl Clone for BorrowInterest
impl Clone for BorrowInterest
Source§impl Debug for BorrowInterest
impl Debug for BorrowInterest
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