pub enum CreateDepositDestinationRequest {
CryptoDepositDestinationRequest(CreateCryptoDepositDestinationRequest),
FiatDepositDestinationRequest(CreateFiatDepositDestinationRequest),
}Expand description
Request to create a new deposit destination. Provide the type-specific details matching the chosen type.
JSON schema
{
"description": "Request to create a new deposit destination. Provide the type-specific details matching the chosen `type`.",
"oneOf": [
{
"$ref": "#/components/schemas/CreateCryptoDepositDestinationRequest"
},
{
"$ref": "#/components/schemas/CreateFiatDepositDestinationRequest"
}
]
}Variants§
CryptoDepositDestinationRequest(CreateCryptoDepositDestinationRequest)
FiatDepositDestinationRequest(CreateFiatDepositDestinationRequest)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateDepositDestinationRequest
impl<'de> Deserialize<'de> for CreateDepositDestinationRequest
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<&CreateDepositDestinationRequest> for CreateDepositDestinationRequest
impl From<&CreateDepositDestinationRequest> for CreateDepositDestinationRequest
Source§fn from(value: &CreateDepositDestinationRequest) -> Self
fn from(value: &CreateDepositDestinationRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateCryptoDepositDestinationRequest> for CreateDepositDestinationRequest
impl From<CreateCryptoDepositDestinationRequest> for CreateDepositDestinationRequest
Source§fn from(value: CreateCryptoDepositDestinationRequest) -> Self
fn from(value: CreateCryptoDepositDestinationRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateFiatDepositDestinationRequest> for CreateDepositDestinationRequest
impl From<CreateFiatDepositDestinationRequest> for CreateDepositDestinationRequest
Source§fn from(value: CreateFiatDepositDestinationRequest) -> Self
fn from(value: CreateFiatDepositDestinationRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CreateDepositDestinationRequest
impl RefUnwindSafe for CreateDepositDestinationRequest
impl Send for CreateDepositDestinationRequest
impl Sync for CreateDepositDestinationRequest
impl Unpin for CreateDepositDestinationRequest
impl UnsafeUnpin for CreateDepositDestinationRequest
impl UnwindSafe for CreateDepositDestinationRequest
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