pub struct RequestQuoteBodyAmount {
pub amount: RequestQuoteBodyAmountAmount,
pub asset: RequestQuoteBodyAmountAsset,
pub asset_class: RequestQuoteBodyAmountAssetClass,
}Expand description
RequestQuoteBodyAmount
JSON schema
{
"type": "object",
"required": [
"amount",
"asset",
"asset_class"
],
"properties": {
"amount": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "^-?[0-9]+(\\.[0-9]+)?$"
},
"asset": {
"type": "string",
"maxLength": 16
},
"asset_class": {
"default": "currency",
"type": "string",
"enum": [
"currency"
]
}
}
}Fields§
§amount: RequestQuoteBodyAmountAmount§asset: RequestQuoteBodyAmountAsset§asset_class: RequestQuoteBodyAmountAssetClassTrait Implementations§
Source§impl Clone for RequestQuoteBodyAmount
impl Clone for RequestQuoteBodyAmount
Source§fn clone(&self) -> RequestQuoteBodyAmount
fn clone(&self) -> RequestQuoteBodyAmount
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 RequestQuoteBodyAmount
impl Debug for RequestQuoteBodyAmount
Source§impl<'de> Deserialize<'de> for RequestQuoteBodyAmount
impl<'de> Deserialize<'de> for RequestQuoteBodyAmount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestQuoteBodyAmount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestQuoteBodyAmount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&RequestQuoteBodyAmount> for RequestQuoteBodyAmount
impl From<&RequestQuoteBodyAmount> for RequestQuoteBodyAmount
Source§fn from(value: &RequestQuoteBodyAmount) -> RequestQuoteBodyAmount
fn from(value: &RequestQuoteBodyAmount) -> RequestQuoteBodyAmount
Converts to this type from the input type.
Source§impl Serialize for RequestQuoteBodyAmount
impl Serialize for RequestQuoteBodyAmount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RequestQuoteBodyAmount
impl RefUnwindSafe for RequestQuoteBodyAmount
impl Send for RequestQuoteBodyAmount
impl Sync for RequestQuoteBodyAmount
impl Unpin for RequestQuoteBodyAmount
impl UnwindSafe for RequestQuoteBodyAmount
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