pub struct BorrowInterest {
pub id: String,
pub currency: String,
pub symbol: Option<String>,
pub interest: f64,
pub interest_rate: f64,
pub principal: f64,
pub timestamp: i64,
pub datetime: String,
pub is_isolated: bool,
pub info: Value,
}Expand description
Borrow interest record
Fields§
§id: StringRecord ID
currency: StringCurrency code
symbol: Option<String>Trading symbol for isolated margin
interest: f64Interest amount
interest_rate: f64Interest rate
principal: f64Principal amount
timestamp: i64Timestamp in milliseconds
datetime: StringISO 8601 datetime string
is_isolated: boolWhether this is for isolated margin
info: ValueRaw response data from the exchange
Implementations§
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 · 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<'de> Deserialize<'de> for BorrowInterest
impl<'de> Deserialize<'de> for BorrowInterest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorrowInterest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorrowInterest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BorrowInterest
impl PartialEq for BorrowInterest
Source§impl Serialize for BorrowInterest
impl Serialize for BorrowInterest
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 BorrowInterest
Auto Trait Implementations§
impl Freeze for BorrowInterest
impl RefUnwindSafe for BorrowInterest
impl Send for BorrowInterest
impl Sync for BorrowInterest
impl Unpin 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