pub enum TransferSource {
TransfersAccount(TransfersAccount),
PaymentMethod(PaymentMethod),
OnchainAddress(OnchainAddress),
OriginatingBankAccountUs(OriginatingBankAccountUs),
}Expand description
The source of the transfer.
JSON schema
{
"description": "The source of the transfer.",
"examples": [
{}
],
"oneOf": [
{
"$ref": "#/components/schemas/transfers_Account"
},
{
"$ref": "#/components/schemas/PaymentMethod"
},
{
"$ref": "#/components/schemas/OnchainAddress"
},
{
"$ref": "#/components/schemas/OriginatingBankAccountUS"
}
]
}Variants§
TransfersAccount(TransfersAccount)
PaymentMethod(PaymentMethod)
OnchainAddress(OnchainAddress)
OriginatingBankAccountUs(OriginatingBankAccountUs)
Trait Implementations§
Source§impl Clone for TransferSource
impl Clone for TransferSource
Source§fn clone(&self) -> TransferSource
fn clone(&self) -> TransferSource
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 TransferSource
impl Debug for TransferSource
Source§impl<'de> Deserialize<'de> for TransferSource
impl<'de> Deserialize<'de> for TransferSource
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<&TransferSource> for TransferSource
impl From<&TransferSource> for TransferSource
Source§fn from(value: &TransferSource) -> Self
fn from(value: &TransferSource) -> Self
Converts to this type from the input type.
Source§impl From<OnchainAddress> for TransferSource
impl From<OnchainAddress> for TransferSource
Source§fn from(value: OnchainAddress) -> Self
fn from(value: OnchainAddress) -> Self
Converts to this type from the input type.
Source§impl From<OriginatingBankAccountUs> for TransferSource
impl From<OriginatingBankAccountUs> for TransferSource
Source§fn from(value: OriginatingBankAccountUs) -> Self
fn from(value: OriginatingBankAccountUs) -> 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<TransfersAccount> for TransferSource
impl From<TransfersAccount> for TransferSource
Source§fn from(value: TransfersAccount) -> Self
fn from(value: TransfersAccount) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransferSource
impl RefUnwindSafe for TransferSource
impl Send for TransferSource
impl Sync for TransferSource
impl Unpin for TransferSource
impl UnsafeUnpin for TransferSource
impl UnwindSafe for TransferSource
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