pub struct FiatOnrampSource {
pub amount: FiatAmount,
pub asset: FiatCurrencyCode,
}Expand description
Source currency details for a fiat onramp quote request.
JSON schema
{
"title": "FiatOnrampSource",
"description": "Source currency details for a fiat onramp quote
request.",
"examples": [
{
"amount": "100.03",
"asset": "USD"
}
],
"type": "object",
"required": [
"amount",
"asset"
],
"properties": {
"amount": {
"$ref": "#/components/schemas/FiatAmount"
},
"asset": {
"$ref": "#/components/schemas/FiatCurrencyCode"
}
},
"x-stainless-model": "onramps.fiat_onramp_source"
}Fields§
§amount: FiatAmount§asset: FiatCurrencyCodeTrait Implementations§
Source§impl Clone for FiatOnrampSource
impl Clone for FiatOnrampSource
Source§fn clone(&self) -> FiatOnrampSource
fn clone(&self) -> FiatOnrampSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FiatOnrampSource
impl Debug for FiatOnrampSource
Source§impl<'de> Deserialize<'de> for FiatOnrampSource
impl<'de> Deserialize<'de> for FiatOnrampSource
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<&FiatOnrampSource> for FiatOnrampSource
impl From<&FiatOnrampSource> for FiatOnrampSource
Source§fn from(value: &FiatOnrampSource) -> Self
fn from(value: &FiatOnrampSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FiatOnrampSource
impl RefUnwindSafe for FiatOnrampSource
impl Send for FiatOnrampSource
impl Sync for FiatOnrampSource
impl Unpin for FiatOnrampSource
impl UnsafeUnpin for FiatOnrampSource
impl UnwindSafe for FiatOnrampSource
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