pub struct BorrowRateHistory {
pub currency: String,
pub symbol: Option<String>,
pub rate: f64,
pub timestamp: i64,
pub datetime: String,
pub vip_level: Option<i32>,
pub info: Value,
}Expand description
Borrow rate history record
Fields§
§currency: StringCurrency code
symbol: Option<String>Trading symbol for isolated margin
rate: f64Daily interest rate
timestamp: i64Timestamp in milliseconds
datetime: StringISO 8601 datetime string
vip_level: Option<i32>VIP level (if applicable)
info: ValueRaw response data from the exchange
Implementations§
Trait Implementations§
Source§impl Clone for BorrowRateHistory
impl Clone for BorrowRateHistory
Source§fn clone(&self) -> BorrowRateHistory
fn clone(&self) -> BorrowRateHistory
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 BorrowRateHistory
impl Debug for BorrowRateHistory
Source§impl<'de> Deserialize<'de> for BorrowRateHistory
impl<'de> Deserialize<'de> for BorrowRateHistory
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorrowRateHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorrowRateHistory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BorrowRateHistory
impl PartialEq for BorrowRateHistory
Source§impl Serialize for BorrowRateHistory
impl Serialize for BorrowRateHistory
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BorrowRateHistory
Auto Trait Implementations§
impl Freeze for BorrowRateHistory
impl RefUnwindSafe for BorrowRateHistory
impl Send for BorrowRateHistory
impl Sync for BorrowRateHistory
impl Unpin for BorrowRateHistory
impl UnwindSafe for BorrowRateHistory
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