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) -> IsolatedBorrowRate
Trait Implementations§
Source§impl Clone for IsolatedBorrowRate
impl Clone for IsolatedBorrowRate
Source§fn clone(&self) -> IsolatedBorrowRate
fn clone(&self) -> IsolatedBorrowRate
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 IsolatedBorrowRate
impl Debug for IsolatedBorrowRate
Source§impl Default for IsolatedBorrowRate
impl Default for IsolatedBorrowRate
Source§fn default() -> IsolatedBorrowRate
fn default() -> IsolatedBorrowRate
Returns the “default value” for a type. Read more
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