pub struct MarginRepay {
pub id: String,
pub currency: String,
pub symbol: Option<String>,
pub amount: f64,
pub timestamp: i64,
pub datetime: String,
pub is_isolated: bool,
pub status: String,
pub info: Value,
}Expand description
Margin repayment record
Fields§
§id: StringRepayment transaction ID
currency: StringCurrency code
symbol: Option<String>Trading symbol for isolated margin
amount: f64Repayment amount
timestamp: i64Timestamp in milliseconds
datetime: StringISO 8601 datetime string
is_isolated: boolWhether this is for isolated margin
status: StringRepayment status (e.g., “PENDING”, “CONFIRMED”, “FAILED”)
info: ValueRaw response data from the exchange
Implementations§
Trait Implementations§
Source§impl Clone for MarginRepay
impl Clone for MarginRepay
Source§fn clone(&self) -> MarginRepay
fn clone(&self) -> MarginRepay
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 MarginRepay
impl Debug for MarginRepay
Source§impl<'de> Deserialize<'de> for MarginRepay
impl<'de> Deserialize<'de> for MarginRepay
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarginRepay, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarginRepay, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MarginRepay
impl PartialEq for MarginRepay
Source§impl Serialize for MarginRepay
impl Serialize for MarginRepay
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 MarginRepay
Auto Trait Implementations§
impl Freeze for MarginRepay
impl RefUnwindSafe for MarginRepay
impl Send for MarginRepay
impl Sync for MarginRepay
impl Unpin for MarginRepay
impl UnwindSafe for MarginRepay
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