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