pub struct IsolatedBorrowRate {
pub symbol: Option<String>,
pub base: Option<String>,
pub base_rate: Option<f64>,
pub quote: Option<String>,
pub quote_rate: Option<f64>,
pub period: Option<i64>,
pub timestamp: Option<i64>,
pub datetime: Option<String>,
pub raw: Value,
}Expand description
Unified isolated-margin borrow rate — one entry per symbol with a rate for
each leg (fetchIsolatedBorrowRate, and each value of
fetchIsolatedBorrowRates). Mirrors the TS IsolatedBorrowRate interface.
Distinct from BorrowRate (cross-margin, single currency/rate), whose
decoder would leave every field of an isolated rate None.
Fields§
§symbol: Option<String>§base: Option<String>§base_rate: Option<f64>§quote: Option<String>§quote_rate: Option<f64>§period: Option<i64>§timestamp: Option<i64>§datetime: Option<String>§raw: ValueImplementations§
Source§impl IsolatedBorrowRate
impl IsolatedBorrowRate
pub fn from_value(v: Value) -> Self
Trait Implementations§
Source§impl Clone for IsolatedBorrowRate
impl Clone for IsolatedBorrowRate
Source§impl Debug for IsolatedBorrowRate
impl Debug for IsolatedBorrowRate
Auto Trait Implementations§
impl Forget for IsolatedBorrowRate
impl Freeze for IsolatedBorrowRate
impl Move for IsolatedBorrowRate
impl RefUnwindSafe for IsolatedBorrowRate
impl Send for IsolatedBorrowRate
impl Sync for IsolatedBorrowRate
impl Unpin for IsolatedBorrowRate
impl UnsafeUnpin for IsolatedBorrowRate
impl UnwindSafe for IsolatedBorrowRate
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