pub struct CreateCryptoDepositDestinationRequest {
pub account_id: AccountId,
pub compliance: Option<Compliance>,
pub crypto: CreateDepositDestinationCrypto,
pub metadata: Option<Metadata>,
pub target: Option<DepositDestinationTarget>,
pub type_: CreateCryptoDepositDestinationRequestType,
}Expand description
Request to create a new crypto deposit destination. Provide the crypto-specific details.
JSON schema
{
"title": "Crypto",
"description": "Request to create a new crypto deposit destination. Provide the crypto-specific details.",
"examples": [
{
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"crypto": {
"network": "base"
},
"metadata": {
"customer_id": "123e4567-e89b-12d3-a456-426614174000",
"reference": "order-12345"
},
"target": {
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"asset": "usd"
},
"type": "crypto"
}
],
"allOf": [
{
"$ref": "#/components/schemas/CreateDepositDestinationRequestBase"
},
{
"type": "object",
"required": [
"crypto"
],
"properties": {
"crypto": {
"description": "Crypto-specific details. Required when `type` is `crypto`.",
"allOf": [
{
"$ref": "#/components/schemas/CreateDepositDestinationCrypto"
}
]
},
"type": {
"type": "string",
"enum": [
"crypto"
]
}
}
}
]
}Fields§
§account_id: AccountId§compliance: Option<Compliance>§crypto: CreateDepositDestinationCryptoCrypto-specific details. Required when type is crypto.
metadata: Option<Metadata>§target: Option<DepositDestinationTarget>§type_: CreateCryptoDepositDestinationRequestTypeImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateCryptoDepositDestinationRequest
impl<'de> Deserialize<'de> for CreateCryptoDepositDestinationRequest
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<&CreateCryptoDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
impl From<&CreateCryptoDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
Source§fn from(value: &CreateCryptoDepositDestinationRequest) -> Self
fn from(value: &CreateCryptoDepositDestinationRequest) -> 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<CreateCryptoDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
impl From<CreateCryptoDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
Source§fn from(value: CreateCryptoDepositDestinationRequest) -> Self
fn from(value: CreateCryptoDepositDestinationRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateCryptoDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
impl TryFrom<CreateCryptoDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CreateCryptoDepositDestinationRequest,
) -> Result<Self, ConversionError>
fn try_from( value: CreateCryptoDepositDestinationRequest, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateCryptoDepositDestinationRequest
impl RefUnwindSafe for CreateCryptoDepositDestinationRequest
impl Send for CreateCryptoDepositDestinationRequest
impl Sync for CreateCryptoDepositDestinationRequest
impl Unpin for CreateCryptoDepositDestinationRequest
impl UnsafeUnpin for CreateCryptoDepositDestinationRequest
impl UnwindSafe for CreateCryptoDepositDestinationRequest
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