pub struct MarginAdjustment {
pub id: String,
pub symbol: Option<String>,
pub currency: String,
pub amount: f64,
pub transfer_type: String,
pub timestamp: i64,
pub datetime: String,
pub status: String,
pub info: Value,
}Expand description
Margin adjustment record (transfers between spot and margin accounts)
Fields§
§id: StringRecord ID
symbol: Option<String>Trading symbol (for isolated margin)
currency: StringCurrency code
amount: f64Adjustment amount
transfer_type: StringTransfer type: “IN” (to margin) or “OUT” (from margin)
timestamp: i64Timestamp in milliseconds
datetime: StringISO 8601 datetime string
status: StringTransfer status
info: ValueRaw response data from the exchange
Implementations§
Trait Implementations§
Source§impl Clone for MarginAdjustment
impl Clone for MarginAdjustment
Source§fn clone(&self) -> MarginAdjustment
fn clone(&self) -> MarginAdjustment
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 MarginAdjustment
impl Debug for MarginAdjustment
Source§impl<'de> Deserialize<'de> for MarginAdjustment
impl<'de> Deserialize<'de> for MarginAdjustment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarginAdjustment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MarginAdjustment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MarginAdjustment
impl PartialEq for MarginAdjustment
Source§impl Serialize for MarginAdjustment
impl Serialize for MarginAdjustment
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 MarginAdjustment
Auto Trait Implementations§
impl Freeze for MarginAdjustment
impl RefUnwindSafe for MarginAdjustment
impl Send for MarginAdjustment
impl Sync for MarginAdjustment
impl Unpin for MarginAdjustment
impl UnwindSafe for MarginAdjustment
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