pub struct QueryMarginRepayResponse {
pub rows: Vec<QueryMarginRepayResponseRowsItem>,
pub total: i32,
}
Expand description
QueryMarginRepayResponse
JSON schema
{
"type": "object",
"required": [
"rows",
"total"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"amount",
"asset",
"interest",
"isolatedSymbol",
"principal",
"status",
"timestamp",
"txId"
],
"properties": {
"amount": {
"description": "Total amount repaid",
"examples": [
"14.00000000"
],
"type": "string"
},
"asset": {
"examples": [
"BNB"
],
"type": "string"
},
"interest": {
"description": "Interest repaid",
"examples": [
"0.01866667"
],
"type": "string"
},
"isolatedSymbol": {
"description": "Isolated symbol, will not be returned for crossed margin",
"examples": [
"BNBUSDT"
],
"type": "string"
},
"principal": {
"description": "Principal repaid",
"examples": [
"13.98133333"
],
"type": "string"
},
"status": {
"description": "One of PENDING (pending execution), CONFIRMED (successfully execution), FAILED (execution failed, nothing happened to your account)",
"examples": [
"CONFIRMED"
],
"type": "string"
},
"timestamp": {
"examples": [
1563438204000
],
"type": "integer",
"format": "int64"
},
"txId": {
"examples": [
2970933056
],
"type": "integer",
"format": "int64"
}
}
}
},
"total": {
"examples": [
1
],
"type": "integer",
"format": "int32"
}
}
}
Fields§
§rows: Vec<QueryMarginRepayResponseRowsItem>
§total: i32
Trait Implementations§
Source§impl Clone for QueryMarginRepayResponse
impl Clone for QueryMarginRepayResponse
Source§fn clone(&self) -> QueryMarginRepayResponse
fn clone(&self) -> QueryMarginRepayResponse
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 QueryMarginRepayResponse
impl Debug for QueryMarginRepayResponse
Source§impl<'de> Deserialize<'de> for QueryMarginRepayResponse
impl<'de> Deserialize<'de> for QueryMarginRepayResponse
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<&QueryMarginRepayResponse> for QueryMarginRepayResponse
impl From<&QueryMarginRepayResponse> for QueryMarginRepayResponse
Source§fn from(value: &QueryMarginRepayResponse) -> Self
fn from(value: &QueryMarginRepayResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryMarginRepayResponse
impl RefUnwindSafe for QueryMarginRepayResponse
impl Send for QueryMarginRepayResponse
impl Sync for QueryMarginRepayResponse
impl Unpin for QueryMarginRepayResponse
impl UnwindSafe for QueryMarginRepayResponse
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