pub struct CreateDepositDestinationFiat {
pub currency: CreateDepositDestinationFiatCurrency,
pub payment_rail: Option<DepositDestinationPaymentRail>,
}Expand description
Fiat-specific request fields for creating a deposit destination. The server determines the account type and provisioning method based on the account’s eligibility. Optionally specify a paymentRail to target a specific payment rail, which may influence banking partner selection.
JSON schema
{
"description": "Fiat-specific request fields for creating a deposit destination. The server determines the account type and provisioning method based on the account's eligibility. Optionally specify a `paymentRail` to target a specific payment rail, which may influence banking partner selection.",
"examples": [
{
"currency": "usd"
}
],
"type": "object",
"required": [
"currency"
],
"properties": {
"currency": {
"description": "The fiat currency for the deposit destination.",
"examples": [
"usd"
],
"type": "string",
"enum": [
"usd"
]
},
"paymentRail": {
"description": "Optional. The desired payment rail. When omitted, the server provisions the default banking partner and returns all rails the account supports. When specified, the server selects a banking partner that supports the requested rail.",
"allOf": [
{
"$ref": "#/components/schemas/DepositDestinationPaymentRail"
}
]
}
},
"x-audience": "public"
}Fields§
§currency: CreateDepositDestinationFiatCurrencyThe fiat currency for the deposit destination.
payment_rail: Option<DepositDestinationPaymentRail>Optional. The desired payment rail. When omitted, the server provisions the default banking partner and returns all rails the account supports. When specified, the server selects a banking partner that supports the requested rail.
Implementations§
Trait Implementations§
Source§impl Clone for CreateDepositDestinationFiat
impl Clone for CreateDepositDestinationFiat
Source§impl Debug for CreateDepositDestinationFiat
impl Debug for CreateDepositDestinationFiat
Source§impl<'de> Deserialize<'de> for CreateDepositDestinationFiat
impl<'de> Deserialize<'de> for CreateDepositDestinationFiat
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<&CreateDepositDestinationFiat> for CreateDepositDestinationFiat
impl From<&CreateDepositDestinationFiat> for CreateDepositDestinationFiat
Source§fn from(value: &CreateDepositDestinationFiat) -> Self
fn from(value: &CreateDepositDestinationFiat) -> Self
Converts to this type from the input type.
Source§impl From<CreateDepositDestinationFiat> for CreateDepositDestinationFiat
impl From<CreateDepositDestinationFiat> for CreateDepositDestinationFiat
Source§fn from(value: CreateDepositDestinationFiat) -> Self
fn from(value: CreateDepositDestinationFiat) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateDepositDestinationFiat> for CreateDepositDestinationFiat
impl TryFrom<CreateDepositDestinationFiat> for CreateDepositDestinationFiat
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CreateDepositDestinationFiat,
) -> Result<Self, ConversionError>
fn try_from( value: CreateDepositDestinationFiat, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateDepositDestinationFiat
impl RefUnwindSafe for CreateDepositDestinationFiat
impl Send for CreateDepositDestinationFiat
impl Sync for CreateDepositDestinationFiat
impl Unpin for CreateDepositDestinationFiat
impl UnsafeUnpin for CreateDepositDestinationFiat
impl UnwindSafe for CreateDepositDestinationFiat
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