pub struct CreatePaymentTransferQuoteBody {
pub amount: String,
pub currency: String,
pub execute: bool,
pub source: TransferSource,
pub source_type: CreatePaymentTransferQuoteBodySourceType,
pub target: TransferTarget,
pub target_type: CreatePaymentTransferQuoteBodyTargetType,
}
Expand description
CreatePaymentTransferQuoteBody
JSON schema
{
"type": "object",
"required": [
"amount",
"currency",
"source",
"sourceType",
"target",
"targetType"
],
"properties": {
"amount": {
"description": "The amount of the transfer, which is either for the source currency to buy, or the target currency to receive.",
"type": "string"
},
"currency": {
"description": "The currency of the transfer. This can be specified as the source currency, which would be used to buy, or else the target currency, which is how much will be received.",
"type": "string"
},
"execute": {
"description": "Whether to execute the transfer. If true, the transfer will be committed and executed. If false, the quote will be generated and returned.",
"default": false,
"type": "boolean"
},
"source": {
"$ref": "#/components/schemas/TransferSource"
},
"sourceType": {
"description": "The type of the source of the transfer.",
"type": "string",
"enum": [
"payment_method"
]
},
"target": {
"$ref": "#/components/schemas/TransferTarget"
},
"targetType": {
"description": "The type of the target of the transfer.",
"type": "string",
"enum": [
"crypto_rail"
]
}
}
}
Fields§
§amount: String
The amount of the transfer, which is either for the source currency to buy, or the target currency to receive.
currency: String
The currency of the transfer. This can be specified as the source currency, which would be used to buy, or else the target currency, which is how much will be received.
execute: bool
Whether to execute the transfer. If true, the transfer will be committed and executed. If false, the quote will be generated and returned.
source: TransferSource
§source_type: CreatePaymentTransferQuoteBodySourceType
The type of the source of the transfer.
target: TransferTarget
§target_type: CreatePaymentTransferQuoteBodyTargetType
The type of the target of the transfer.
Implementations§
Trait Implementations§
Source§impl Clone for CreatePaymentTransferQuoteBody
impl Clone for CreatePaymentTransferQuoteBody
Source§fn clone(&self) -> CreatePaymentTransferQuoteBody
fn clone(&self) -> CreatePaymentTransferQuoteBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for CreatePaymentTransferQuoteBody
impl<'de> Deserialize<'de> for CreatePaymentTransferQuoteBody
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<&CreatePaymentTransferQuoteBody> for CreatePaymentTransferQuoteBody
impl From<&CreatePaymentTransferQuoteBody> for CreatePaymentTransferQuoteBody
Source§fn from(value: &CreatePaymentTransferQuoteBody) -> Self
fn from(value: &CreatePaymentTransferQuoteBody) -> Self
Converts to this type from the input type.
Source§impl From<CreatePaymentTransferQuoteBody> for CreatePaymentTransferQuoteBody
impl From<CreatePaymentTransferQuoteBody> for CreatePaymentTransferQuoteBody
Source§fn from(value: CreatePaymentTransferQuoteBody) -> Self
fn from(value: CreatePaymentTransferQuoteBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreatePaymentTransferQuoteBody> for CreatePaymentTransferQuoteBody
impl TryFrom<CreatePaymentTransferQuoteBody> for CreatePaymentTransferQuoteBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CreatePaymentTransferQuoteBody,
) -> Result<Self, ConversionError>
fn try_from( value: CreatePaymentTransferQuoteBody, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreatePaymentTransferQuoteBody
impl RefUnwindSafe for CreatePaymentTransferQuoteBody
impl Send for CreatePaymentTransferQuoteBody
impl Sync for CreatePaymentTransferQuoteBody
impl Unpin for CreatePaymentTransferQuoteBody
impl UnwindSafe for CreatePaymentTransferQuoteBody
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