pub struct GetQuoteResponseDataResultQuotedSpend {
pub asset: GetQuoteResponseDataResultQuotedSpendAsset,
pub asset_class: Option<GetQuoteResponseDataResultQuotedSpendAssetClass>,
pub fee: GetQuoteResponseDataResultQuotedSpendFee,
pub subtotal: GetQuoteResponseDataResultQuotedSpendSubtotal,
pub total: GetQuoteResponseDataResultQuotedSpendTotal,
}Expand description
GetQuoteResponseDataResultQuotedSpend
JSON schema
{
"type": "object",
"required": [
"asset",
"asset_class",
"fee",
"subtotal",
"total"
],
"properties": {
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"type": [
"string",
"null"
],
"enum": [
"currency"
]
},
"fee": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"subtotal": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"total": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
}
}
}Fields§
§asset: GetQuoteResponseDataResultQuotedSpendAsset§asset_class: Option<GetQuoteResponseDataResultQuotedSpendAssetClass>§fee: GetQuoteResponseDataResultQuotedSpendFee§subtotal: GetQuoteResponseDataResultQuotedSpendSubtotal§total: GetQuoteResponseDataResultQuotedSpendTotalTrait Implementations§
Source§impl Clone for GetQuoteResponseDataResultQuotedSpend
impl Clone for GetQuoteResponseDataResultQuotedSpend
Source§fn clone(&self) -> GetQuoteResponseDataResultQuotedSpend
fn clone(&self) -> GetQuoteResponseDataResultQuotedSpend
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<'de> Deserialize<'de> for GetQuoteResponseDataResultQuotedSpend
impl<'de> Deserialize<'de> for GetQuoteResponseDataResultQuotedSpend
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<&GetQuoteResponseDataResultQuotedSpend> for GetQuoteResponseDataResultQuotedSpend
impl From<&GetQuoteResponseDataResultQuotedSpend> for GetQuoteResponseDataResultQuotedSpend
Source§fn from(value: &GetQuoteResponseDataResultQuotedSpend) -> Self
fn from(value: &GetQuoteResponseDataResultQuotedSpend) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetQuoteResponseDataResultQuotedSpend
impl RefUnwindSafe for GetQuoteResponseDataResultQuotedSpend
impl Send for GetQuoteResponseDataResultQuotedSpend
impl Sync for GetQuoteResponseDataResultQuotedSpend
impl Unpin for GetQuoteResponseDataResultQuotedSpend
impl UnwindSafe for GetQuoteResponseDataResultQuotedSpend
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