pub struct PaymentMethod {
pub asset: Asset,
pub payment_method_id: PaymentMethodId,
}Expand description
The Payment Method specific details for the transfer.
JSON schema
{
"title": "Payment Method",
"description": "The Payment Method specific details for the transfer.",
"examples": [
{
"asset": "usd",
"paymentMethodId": "paymentMethod_af2937b0-9846-4fe7-bfe9-ccc22d935114"
}
],
"type": "object",
"required": [
"asset",
"paymentMethodId"
],
"properties": {
"asset": {
"description": "The asset symbol. Supported values are `usd` and `eur`.",
"examples": [
"usd"
],
"allOf": [
{
"$ref": "#/components/schemas/Asset"
}
]
},
"paymentMethodId": {
"description": "The ID of the Payment Method.",
"examples": [
"paymentMethod_af2937b0-9846-4fe7-bfe9-ccc22d935114"
],
"allOf": [
{
"$ref": "#/components/schemas/PaymentMethodId"
}
]
}
}
}Fields§
§asset: AssetThe asset symbol. Supported values are usd and eur.
payment_method_id: PaymentMethodIdThe ID of the Payment Method.
Implementations§
Source§impl PaymentMethod
impl PaymentMethod
pub fn builder() -> PaymentMethod
Trait Implementations§
Source§impl Clone for PaymentMethod
impl Clone for PaymentMethod
Source§impl Debug for PaymentMethod
impl Debug for PaymentMethod
Source§impl<'de> Deserialize<'de> for PaymentMethod
impl<'de> Deserialize<'de> for PaymentMethod
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<&PaymentMethod> for PaymentMethod
impl From<&PaymentMethod> for PaymentMethod
Source§fn from(value: &PaymentMethod) -> Self
fn from(value: &PaymentMethod) -> Self
Converts to this type from the input type.
Source§impl From<PaymentMethod> for TransferSource
impl From<PaymentMethod> for TransferSource
Source§fn from(value: PaymentMethod) -> Self
fn from(value: PaymentMethod) -> Self
Converts to this type from the input type.
Source§impl From<PaymentMethod> for TransferTarget
impl From<PaymentMethod> for TransferTarget
Source§fn from(value: PaymentMethod) -> Self
fn from(value: PaymentMethod) -> Self
Converts to this type from the input type.
Source§impl From<PaymentMethod> for PaymentMethod
impl From<PaymentMethod> for PaymentMethod
Source§fn from(value: PaymentMethod) -> Self
fn from(value: PaymentMethod) -> Self
Converts to this type from the input type.
Source§impl Serialize for PaymentMethod
impl Serialize for PaymentMethod
Source§impl TryFrom<PaymentMethod> for PaymentMethod
impl TryFrom<PaymentMethod> for PaymentMethod
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentMethod) -> Result<Self, ConversionError>
fn try_from(value: PaymentMethod) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentMethod
impl RefUnwindSafe for PaymentMethod
impl Send for PaymentMethod
impl Sync for PaymentMethod
impl Unpin for PaymentMethod
impl UnsafeUnpin for PaymentMethod
impl UnwindSafe for PaymentMethod
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