pub struct CreateCryptoDepositDestinationRequest {
pub account_id: AccountId,
pub crypto: CreateDepositDestinationCrypto,
pub metadata: Option<Metadata>,
pub target: Option<DepositDestinationTarget>,
pub type_: CreateCryptoDepositDestinationRequestType,
}Expand description
CreateCryptoDepositDestinationRequest
JSON schema
{
"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§crypto: CreateDepositDestinationCryptoCrypto-specific details. Required when type is crypto.
metadata: Option<Metadata>§target: Option<DepositDestinationTarget>§type_: CreateCryptoDepositDestinationRequestTypeImplementations§
Trait Implementations§
Source§impl Clone for CreateCryptoDepositDestinationRequest
impl Clone for CreateCryptoDepositDestinationRequest
Source§fn clone(&self) -> CreateCryptoDepositDestinationRequest
fn clone(&self) -> CreateCryptoDepositDestinationRequest
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<'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 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<CreateDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
impl From<CreateDepositDestinationRequest> for CreateCryptoDepositDestinationRequest
Source§fn from(value: CreateDepositDestinationRequest) -> Self
fn from(value: CreateDepositDestinationRequest) -> 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