pub struct MarginPairResponse {
pub base: String,
pub id: i64,
pub is_buy_allowed: bool,
pub is_margin_trade: bool,
pub is_sell_allowed: bool,
pub quote: String,
pub symbol: String,
}
Expand description
MarginPairResponse
JSON schema
{
"type": "object",
"required": [
"base",
"id",
"isBuyAllowed",
"isMarginTrade",
"isSellAllowed",
"quote",
"symbol"
],
"properties": {
"base": {
"examples": [
"BTC"
],
"type": "string"
},
"id": {
"examples": [
323355778339572400
],
"type": "integer",
"format": "int64"
},
"isBuyAllowed": {
"type": "boolean"
},
"isMarginTrade": {
"type": "boolean"
},
"isSellAllowed": {
"type": "boolean"
},
"quote": {
"examples": [
"USDT"
],
"type": "string"
},
"symbol": {
"examples": [
"BNBUSDT"
],
"type": "string"
}
}
}
Fields§
§base: String
§id: i64
§is_buy_allowed: bool
§is_margin_trade: bool
§is_sell_allowed: bool
§quote: String
§symbol: String
Trait Implementations§
Source§impl Clone for MarginPairResponse
impl Clone for MarginPairResponse
Source§fn clone(&self) -> MarginPairResponse
fn clone(&self) -> MarginPairResponse
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 MarginPairResponse
impl Debug for MarginPairResponse
Source§impl<'de> Deserialize<'de> for MarginPairResponse
impl<'de> Deserialize<'de> for MarginPairResponse
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<&MarginPairResponse> for MarginPairResponse
impl From<&MarginPairResponse> for MarginPairResponse
Source§fn from(value: &MarginPairResponse) -> Self
fn from(value: &MarginPairResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarginPairResponse
impl RefUnwindSafe for MarginPairResponse
impl Send for MarginPairResponse
impl Sync for MarginPairResponse
impl Unpin for MarginPairResponse
impl UnwindSafe for MarginPairResponse
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