pub struct ConvertGetQuoteResponse {
pub from_amount: String,
pub inverse_ratio: String,
pub quote_id: String,
pub ratio: String,
pub to_amount: String,
pub valid_timestamp: i64,
}
Expand description
ConvertGetQuoteResponse
JSON schema
{
"type": "object",
"required": [
"fromAmount",
"inverseRatio",
"quoteId",
"ratio",
"toAmount",
"validTimestamp"
],
"properties": {
"fromAmount": {
"examples": [
"0.1"
],
"type": "string"
},
"inverseRatio": {
"examples": [
"0.0000262"
],
"type": "string"
},
"quoteId": {
"examples": [
"12415572564"
],
"type": "string"
},
"ratio": {
"examples": [
"38163.7"
],
"type": "string"
},
"toAmount": {
"examples": [
"3816.37"
],
"type": "string"
},
"validTimestamp": {
"examples": [
1623319461670
],
"type": "integer",
"format": "int64"
}
}
}
Fields§
§from_amount: String
§inverse_ratio: String
§quote_id: String
§ratio: String
§to_amount: String
§valid_timestamp: i64
Trait Implementations§
Source§impl Clone for ConvertGetQuoteResponse
impl Clone for ConvertGetQuoteResponse
Source§fn clone(&self) -> ConvertGetQuoteResponse
fn clone(&self) -> ConvertGetQuoteResponse
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 ConvertGetQuoteResponse
impl Debug for ConvertGetQuoteResponse
Source§impl<'de> Deserialize<'de> for ConvertGetQuoteResponse
impl<'de> Deserialize<'de> for ConvertGetQuoteResponse
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<&ConvertGetQuoteResponse> for ConvertGetQuoteResponse
impl From<&ConvertGetQuoteResponse> for ConvertGetQuoteResponse
Source§fn from(value: &ConvertGetQuoteResponse) -> Self
fn from(value: &ConvertGetQuoteResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConvertGetQuoteResponse
impl RefUnwindSafe for ConvertGetQuoteResponse
impl Send for ConvertGetQuoteResponse
impl Sync for ConvertGetQuoteResponse
impl Unpin for ConvertGetQuoteResponse
impl UnwindSafe for ConvertGetQuoteResponse
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