pub struct GetFiatOnrampQuotesInput {
pub destination: FiatOnrampDestination,
pub environment: FiatOnrampEnvironment,
pub source: FiatOnrampSource,
}Expand description
The request input for getting fiat onramp quotes.
JSON schema
{
"title": "GetFiatOnrampQuotesInput",
"description": "The request input for getting fiat onramp quotes.",
"examples": [
{
"destination": {
"address": "0x1234567890abcdef1234567890abcdef12345678",
"asset": "USDC",
"chain": "eip155:42161"
},
"environment": "production",
"source": {
"amount": "100.03",
"asset": "USD"
}
}
],
"type": "object",
"required": [
"destination",
"environment",
"source"
],
"properties": {
"destination": {
"$ref": "#/components/schemas/FiatOnrampDestination"
},
"environment": {
"$ref": "#/components/schemas/FiatOnrampEnvironment"
},
"source": {
"$ref": "#/components/schemas/FiatOnrampSource"
}
},
"x-stainless-model": "onramps.get_fiat_onramp_quotes_input"
}Fields§
§destination: FiatOnrampDestination§environment: FiatOnrampEnvironment§source: FiatOnrampSourceTrait Implementations§
Source§impl Clone for GetFiatOnrampQuotesInput
impl Clone for GetFiatOnrampQuotesInput
Source§fn clone(&self) -> GetFiatOnrampQuotesInput
fn clone(&self) -> GetFiatOnrampQuotesInput
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 GetFiatOnrampQuotesInput
impl Debug for GetFiatOnrampQuotesInput
Source§impl<'de> Deserialize<'de> for GetFiatOnrampQuotesInput
impl<'de> Deserialize<'de> for GetFiatOnrampQuotesInput
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<&GetFiatOnrampQuotesInput> for GetFiatOnrampQuotesInput
impl From<&GetFiatOnrampQuotesInput> for GetFiatOnrampQuotesInput
Source§fn from(value: &GetFiatOnrampQuotesInput) -> Self
fn from(value: &GetFiatOnrampQuotesInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetFiatOnrampQuotesInput
impl RefUnwindSafe for GetFiatOnrampQuotesInput
impl Send for GetFiatOnrampQuotesInput
impl Sync for GetFiatOnrampQuotesInput
impl Unpin for GetFiatOnrampQuotesInput
impl UnsafeUnpin for GetFiatOnrampQuotesInput
impl UnwindSafe for GetFiatOnrampQuotesInput
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