pub struct BorrowHistoryEntry {
pub currency: String,
pub created_time: Timestamp,
pub borrow_cost: Decimal,
pub hourly_borrow_rate: Decimal,
pub interest_bearing_borrow_size: Decimal,
pub cost_exemption: Decimal,
pub borrow_amount: Decimal,
pub unrealised_loss: Decimal,
pub free_borrowed_amount: Option<Decimal>,
}Expand description
Item of the list returned by GET /v5/account/borrow-history (Client::get_borrow_history).
Fields§
§currency: StringCurrency
created_time: TimestampInterest record timestamp (ms)
borrow_cost: DecimalBorrow cost, i.e., accrued interest
hourly_borrow_rate: DecimalHourly borrow rate
interest_bearing_borrow_size: DecimalBorrowed amount that accrues interest
cost_exemption: DecimalAmount exempted from interest
borrow_amount: DecimalBorrowed amount
unrealised_loss: DecimalUnrealised loss
free_borrowed_amount: Option<Decimal>Amount borrowed within the interest-free threshold
Trait Implementations§
Source§impl Debug for BorrowHistoryEntry
impl Debug for BorrowHistoryEntry
Source§impl<'de> Deserialize<'de> for BorrowHistoryEntry
impl<'de> Deserialize<'de> for BorrowHistoryEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BorrowHistoryEntry
impl PartialEq for BorrowHistoryEntry
impl StructuralPartialEq for BorrowHistoryEntry
Auto Trait Implementations§
impl Freeze for BorrowHistoryEntry
impl RefUnwindSafe for BorrowHistoryEntry
impl Send for BorrowHistoryEntry
impl Sync for BorrowHistoryEntry
impl Unpin for BorrowHistoryEntry
impl UnsafeUnpin for BorrowHistoryEntry
impl UnwindSafe for BorrowHistoryEntry
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