pub enum DepositDestination {
CryptoDepositDestination(CryptoDepositDestination),
FiatDepositDestination(FiatDepositDestination),
}Expand description
A deposit destination for receiving funds to an account.
JSON schema
{
"description": "A deposit destination for receiving funds to an account.",
"oneOf": [
{
"$ref": "#/components/schemas/CryptoDepositDestination"
},
{
"$ref": "#/components/schemas/FiatDepositDestination"
}
]
}Variants§
CryptoDepositDestination(CryptoDepositDestination)
FiatDepositDestination(FiatDepositDestination)
Trait Implementations§
Source§impl Clone for DepositDestination
impl Clone for DepositDestination
Source§impl Debug for DepositDestination
impl Debug for DepositDestination
Source§impl<'de> Deserialize<'de> for DepositDestination
impl<'de> Deserialize<'de> for DepositDestination
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<&DepositDestination> for DepositDestination
impl From<&DepositDestination> for DepositDestination
Source§fn from(value: &DepositDestination) -> Self
fn from(value: &DepositDestination) -> Self
Converts to this type from the input type.
Source§impl From<CryptoDepositDestination> for DepositDestination
impl From<CryptoDepositDestination> for DepositDestination
Source§fn from(value: CryptoDepositDestination) -> Self
fn from(value: CryptoDepositDestination) -> Self
Converts to this type from the input type.
Source§impl From<FiatDepositDestination> for DepositDestination
impl From<FiatDepositDestination> for DepositDestination
Source§fn from(value: FiatDepositDestination) -> Self
fn from(value: FiatDepositDestination) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DepositDestination
impl RefUnwindSafe for DepositDestination
impl Send for DepositDestination
impl Sync for DepositDestination
impl Unpin for DepositDestination
impl UnsafeUnpin for DepositDestination
impl UnwindSafe for DepositDestination
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