pub struct GetFiatOnrampQuotesResponse {
pub provider_errors: Vec<FiatOnrampProviderError>,
pub quotes: Vec<FiatOnrampQuote>,
}Expand description
The response containing fiat onramp quotes.
JSON schema
{
"title": "GetFiatOnrampQuotesResponse",
"description": "The response containing fiat onramp quotes.",
"examples": [
{
"quotes": [
{
"destination_currency_code": "USDC",
"payment_method": "CREDIT_DEBIT_CARD",
"provider": "meld",
"source_amount": 100,
"source_currency_code": "USD",
"sub_provider": "TRANSAK"
}
]
}
],
"type": "object",
"required": [
"quotes"
],
"properties": {
"provider_errors": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FiatOnrampProviderError"
}
},
"quotes": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FiatOnrampQuote"
}
}
},
"x-stainless-model": "onramps.get_fiat_onramp_quotes_response"
}Fields§
§provider_errors: Vec<FiatOnrampProviderError>§quotes: Vec<FiatOnrampQuote>Trait Implementations§
Source§impl Clone for GetFiatOnrampQuotesResponse
impl Clone for GetFiatOnrampQuotesResponse
Source§fn clone(&self) -> GetFiatOnrampQuotesResponse
fn clone(&self) -> GetFiatOnrampQuotesResponse
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 GetFiatOnrampQuotesResponse
impl Debug for GetFiatOnrampQuotesResponse
Source§impl<'de> Deserialize<'de> for GetFiatOnrampQuotesResponse
impl<'de> Deserialize<'de> for GetFiatOnrampQuotesResponse
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<&GetFiatOnrampQuotesResponse> for GetFiatOnrampQuotesResponse
impl From<&GetFiatOnrampQuotesResponse> for GetFiatOnrampQuotesResponse
Source§fn from(value: &GetFiatOnrampQuotesResponse) -> Self
fn from(value: &GetFiatOnrampQuotesResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetFiatOnrampQuotesResponse
impl RefUnwindSafe for GetFiatOnrampQuotesResponse
impl Send for GetFiatOnrampQuotesResponse
impl Sync for GetFiatOnrampQuotesResponse
impl Unpin for GetFiatOnrampQuotesResponse
impl UnsafeUnpin for GetFiatOnrampQuotesResponse
impl UnwindSafe for GetFiatOnrampQuotesResponse
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