pub struct GetFiatOnrampUrlInput {
pub destination: FiatOnrampDestination,
pub payment_method: String,
pub provider: FiatOnrampProvider,
pub redirect_url: Option<String>,
pub source: FiatOnrampSource,
pub sub_provider: Option<String>,
}Expand description
The request input for getting a fiat onramp provider session URL.
JSON schema
{
"title": "GetFiatOnrampUrlInput",
"description": "The request input for getting a fiat onramp provider
session URL.",
"examples": [
{
"destination": {
"address": "0x1234567890abcdef1234567890abcdef12345678",
"asset": "USDC",
"chain": "eip155:42161"
},
"payment_method": "CREDIT_DEBIT_CARD",
"provider": "meld",
"source": {
"amount": "100.03",
"asset": "USD"
},
"sub_provider": "TRANSAK"
}
],
"type": "object",
"required": [
"destination",
"payment_method",
"provider",
"source"
],
"properties": {
"destination": {
"$ref": "#/components/schemas/FiatOnrampDestination"
},
"payment_method": {
"type": "string"
},
"provider": {
"$ref": "#/components/schemas/FiatOnrampProvider"
},
"redirect_url": {
"type": "string",
"format": "uri"
},
"source": {
"$ref": "#/components/schemas/FiatOnrampSource"
},
"sub_provider": {
"type": "string"
}
},
"x-stainless-model": "onramps.get_fiat_onramp_url_input"
}Fields§
§destination: FiatOnrampDestination§payment_method: String§provider: FiatOnrampProvider§redirect_url: Option<String>§source: FiatOnrampSource§sub_provider: Option<String>Trait Implementations§
Source§impl Clone for GetFiatOnrampUrlInput
impl Clone for GetFiatOnrampUrlInput
Source§fn clone(&self) -> GetFiatOnrampUrlInput
fn clone(&self) -> GetFiatOnrampUrlInput
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 GetFiatOnrampUrlInput
impl Debug for GetFiatOnrampUrlInput
Source§impl<'de> Deserialize<'de> for GetFiatOnrampUrlInput
impl<'de> Deserialize<'de> for GetFiatOnrampUrlInput
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<&GetFiatOnrampUrlInput> for GetFiatOnrampUrlInput
impl From<&GetFiatOnrampUrlInput> for GetFiatOnrampUrlInput
Source§fn from(value: &GetFiatOnrampUrlInput) -> Self
fn from(value: &GetFiatOnrampUrlInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetFiatOnrampUrlInput
impl RefUnwindSafe for GetFiatOnrampUrlInput
impl Send for GetFiatOnrampUrlInput
impl Sync for GetFiatOnrampUrlInput
impl Unpin for GetFiatOnrampUrlInput
impl UnsafeUnpin for GetFiatOnrampUrlInput
impl UnwindSafe for GetFiatOnrampUrlInput
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