pub struct FiatPaymentsResponse {
pub code: String,
pub data: Vec<FiatPaymentsResponseDataItem>,
pub message: String,
pub success: bool,
pub total: i32,
}
Expand description
FiatPaymentsResponse
JSON schema
{
"type": "object",
"required": [
"code",
"data",
"message",
"success",
"total"
],
"properties": {
"code": {
"examples": [
"000000"
],
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"createTime",
"cryptoCurrency",
"fiatCurrency",
"obtainAmount",
"orderNo",
"price",
"sourceAmount",
"status",
"totalFee",
"updateTime"
],
"properties": {
"createTime": {
"examples": [
1624529919000
],
"type": "integer",
"format": "int64"
},
"cryptoCurrency": {
"description": "Crypto token",
"examples": [
"LUNA"
],
"type": "string"
},
"fiatCurrency": {
"description": "Fiat token",
"examples": [
"EUR"
],
"type": "string"
},
"obtainAmount": {
"description": "Crypto trade amount",
"examples": [
"4.462"
],
"type": "string"
},
"orderNo": {
"examples": [
"353fca443f06466db0c4dc89f94f027a"
],
"type": "string"
},
"price": {
"examples": [
"4.437472"
],
"type": "string"
},
"sourceAmount": {
"description": "Fiat trade amount",
"examples": [
"20.00"
],
"type": "string"
},
"status": {
"description": "Processing, Completed, Failed, Refunded",
"examples": [
"Failed"
],
"type": "string"
},
"totalFee": {
"description": "Trade fee",
"examples": [
"0.2"
],
"type": "string"
},
"updateTime": {
"examples": [
1624529919000
],
"type": "integer",
"format": "int64"
}
}
}
},
"message": {
"examples": [
"success"
],
"type": "string"
},
"success": {
"type": "boolean"
},
"total": {
"examples": [
1
],
"type": "integer",
"format": "int32"
}
}
}
Fields§
§code: String
§data: Vec<FiatPaymentsResponseDataItem>
§message: String
§success: bool
§total: i32
Trait Implementations§
Source§impl Clone for FiatPaymentsResponse
impl Clone for FiatPaymentsResponse
Source§fn clone(&self) -> FiatPaymentsResponse
fn clone(&self) -> FiatPaymentsResponse
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 FiatPaymentsResponse
impl Debug for FiatPaymentsResponse
Source§impl<'de> Deserialize<'de> for FiatPaymentsResponse
impl<'de> Deserialize<'de> for FiatPaymentsResponse
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<&FiatPaymentsResponse> for FiatPaymentsResponse
impl From<&FiatPaymentsResponse> for FiatPaymentsResponse
Source§fn from(value: &FiatPaymentsResponse) -> Self
fn from(value: &FiatPaymentsResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FiatPaymentsResponse
impl RefUnwindSafe for FiatPaymentsResponse
impl Send for FiatPaymentsResponse
impl Sync for FiatPaymentsResponse
impl Unpin for FiatPaymentsResponse
impl UnwindSafe for FiatPaymentsResponse
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