pub struct LoanRepayHistoryResponse {
pub rows: Vec<LoanRepayHistoryResponseRowsItem>,
pub total: i32,
}
Expand description
LoanRepayHistoryResponse
JSON schema
{
"type": "object",
"required": [
"rows",
"total"
],
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"required": [
"collateralCoin",
"collateralReturn",
"collateralUsed",
"loanCoin",
"orderId",
"repayAmount",
"repayStatus",
"repayTime",
"repayType"
],
"properties": {
"collateralCoin": {
"examples": [
"BNB"
],
"type": "string"
},
"collateralReturn": {
"examples": [
"49.27565492"
],
"type": "string"
},
"collateralUsed": {
"examples": [
"0"
],
"type": "string"
},
"loanCoin": {
"examples": [
"BUSD"
],
"type": "string"
},
"orderId": {
"examples": [
756783308056935434
],
"type": "integer",
"format": "int64"
},
"repayAmount": {
"examples": [
"10000"
],
"type": "string"
},
"repayStatus": {
"description": "'repayType': '1' // 1 for 'repay with borrowed coin', 2 for 'repay with collateral' 'repayStatus': 'Repaid' // Repaid, Repaying, Failed",
"examples": [
"Repaid"
],
"type": "string"
},
"repayTime": {
"examples": [
1575018510000
],
"type": "integer",
"format": "int64"
},
"repayType": {
"examples": [
"1"
],
"type": "string"
}
}
}
},
"total": {
"examples": [
1
],
"type": "integer",
"format": "int32"
}
}
}
Fields§
§rows: Vec<LoanRepayHistoryResponseRowsItem>
§total: i32
Trait Implementations§
Source§impl Clone for LoanRepayHistoryResponse
impl Clone for LoanRepayHistoryResponse
Source§fn clone(&self) -> LoanRepayHistoryResponse
fn clone(&self) -> LoanRepayHistoryResponse
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 LoanRepayHistoryResponse
impl Debug for LoanRepayHistoryResponse
Source§impl<'de> Deserialize<'de> for LoanRepayHistoryResponse
impl<'de> Deserialize<'de> for LoanRepayHistoryResponse
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<&LoanRepayHistoryResponse> for LoanRepayHistoryResponse
impl From<&LoanRepayHistoryResponse> for LoanRepayHistoryResponse
Source§fn from(value: &LoanRepayHistoryResponse) -> Self
fn from(value: &LoanRepayHistoryResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoanRepayHistoryResponse
impl RefUnwindSafe for LoanRepayHistoryResponse
impl Send for LoanRepayHistoryResponse
impl Sync for LoanRepayHistoryResponse
impl Unpin for LoanRepayHistoryResponse
impl UnwindSafe for LoanRepayHistoryResponse
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