pub struct LoanRecord {
pub asset: String,
pub principal: f64,
pub timestamp: u64,
pub status: String,
pub isolated_symbol: Option<String>,
pub tx_id: u64,
}Expand description
Loan record.
Fields§
§asset: StringAsset.
principal: f64Principal.
timestamp: u64Timestamp.
status: StringStatus (PENDING, CONFIRMED, FAILED).
isolated_symbol: Option<String>Isolated symbol (for isolated margin).
tx_id: u64Transaction ID.
Trait Implementations§
Source§impl Clone for LoanRecord
impl Clone for LoanRecord
Source§fn clone(&self) -> LoanRecord
fn clone(&self) -> LoanRecord
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 LoanRecord
impl Debug for LoanRecord
Source§impl<'de> Deserialize<'de> for LoanRecord
impl<'de> Deserialize<'de> for LoanRecord
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
Auto Trait Implementations§
impl Freeze for LoanRecord
impl RefUnwindSafe for LoanRecord
impl Send for LoanRecord
impl Sync for LoanRecord
impl Unpin for LoanRecord
impl UnwindSafe for LoanRecord
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