pub struct MarginTrade {
pub commission: String,
pub commission_asset: String,
pub id: i64,
pub is_best_match: bool,
pub is_buyer: bool,
pub is_isolated: bool,
pub is_maker: bool,
pub order_id: i64,
pub price: String,
pub qty: String,
pub symbol: String,
pub time: i64,
}
Expand description
MarginTrade
JSON schema
{
"type": "object",
"required": [
"commission",
"commissionAsset",
"id",
"isBestMatch",
"isBuyer",
"isIsolated",
"isMaker",
"orderId",
"price",
"qty",
"symbol",
"time"
],
"properties": {
"commission": {
"examples": [
"0.00006000"
],
"type": "string"
},
"commissionAsset": {
"examples": [
"BTC"
],
"type": "string"
},
"id": {
"examples": [
28
],
"type": "integer",
"format": "int64"
},
"isBestMatch": {
"type": "boolean"
},
"isBuyer": {
"type": "boolean"
},
"isIsolated": {
"examples": [
false
],
"type": "boolean"
},
"isMaker": {
"type": "boolean"
},
"orderId": {
"examples": [
28
],
"type": "integer",
"format": "int64"
},
"price": {
"examples": [
"0.02000000"
],
"type": "string"
},
"qty": {
"examples": [
"1.02000000"
],
"type": "string"
},
"symbol": {
"examples": [
"BNBBTC"
],
"type": "string"
},
"time": {
"examples": [
1507725176595
],
"type": "integer",
"format": "int64"
}
}
}
Fields§
§commission: String
§commission_asset: String
§id: i64
§is_best_match: bool
§is_buyer: bool
§is_isolated: bool
§is_maker: bool
§order_id: i64
§price: String
§qty: String
§symbol: String
§time: i64
Trait Implementations§
Source§impl Clone for MarginTrade
impl Clone for MarginTrade
Source§fn clone(&self) -> MarginTrade
fn clone(&self) -> MarginTrade
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 MarginTrade
impl Debug for MarginTrade
Source§impl<'de> Deserialize<'de> for MarginTrade
impl<'de> Deserialize<'de> for MarginTrade
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 From<&MarginTrade> for MarginTrade
impl From<&MarginTrade> for MarginTrade
Source§fn from(value: &MarginTrade) -> Self
fn from(value: &MarginTrade) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarginTrade
impl RefUnwindSafe for MarginTrade
impl Send for MarginTrade
impl Sync for MarginTrade
impl Unpin for MarginTrade
impl UnwindSafe for MarginTrade
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