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