pub struct CryptoDepositDestination {
pub account_id: AccountId,
pub created_at: DateTime<Utc>,
pub crypto: DepositDestinationCrypto,
pub deposit_destination_id: DepositDestinationId,
pub metadata: Option<Metadata>,
pub status: DepositDestinationStatus,
pub target: Option<DepositDestinationTarget>,
pub type_: CryptoDepositDestinationType,
pub updated_at: DateTime<Utc>,
}Expand description
A cryptocurrency deposit destination.
JSON schema
{
"description": "A cryptocurrency deposit destination.",
"examples": [
{
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"createdAt": "2023-10-08T14:30:00Z",
"crypto": {
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"network": "base"
},
"depositDestinationId": "depositDestination_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"metadata": {
"customer_id": "123e4567-e89b-12d3-a456-426614174000",
"reference": "order-12345"
},
"status": "active",
"target": {
"accountId": "account_bf3847c1-a957-5ae8-cfa0-ddd33e046225",
"asset": "usd"
},
"type": "crypto",
"updatedAt": "2023-10-08T14:30:00Z"
}
],
"type": "object",
"required": [
"accountId",
"createdAt",
"crypto",
"depositDestinationId",
"status",
"type",
"updatedAt"
],
"properties": {
"accountId": {
"$ref": "#/components/schemas/AccountId"
},
"createdAt": {
"description": "The timestamp when the deposit destination was created.",
"examples": [
"2023-10-08T14:30:00Z"
],
"type": "string",
"format": "date-time"
},
"crypto": {
"description": "Crypto-specific details for this deposit destination. Always populated in responses. Contains the network and address.",
"allOf": [
{
"$ref": "#/components/schemas/DepositDestinationCrypto"
}
]
},
"depositDestinationId": {
"$ref": "#/components/schemas/DepositDestinationId"
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
},
"status": {
"$ref": "#/components/schemas/DepositDestinationStatus"
},
"target": {
"$ref": "#/components/schemas/DepositDestinationTarget"
},
"type": {
"description": "The type of deposit destination.",
"examples": [
"crypto"
],
"type": "string",
"enum": [
"crypto"
]
},
"updatedAt": {
"description": "The timestamp when the deposit destination was last updated.",
"examples": [
"2023-10-08T14:30:00Z"
],
"type": "string",
"format": "date-time"
}
}
}Fields§
§account_id: AccountId§created_at: DateTime<Utc>The timestamp when the deposit destination was created.
crypto: DepositDestinationCryptoCrypto-specific details for this deposit destination. Always populated in responses. Contains the network and address.
deposit_destination_id: DepositDestinationId§metadata: Option<Metadata>§status: DepositDestinationStatus§target: Option<DepositDestinationTarget>§type_: CryptoDepositDestinationTypeThe type of deposit destination.
updated_at: DateTime<Utc>The timestamp when the deposit destination was last updated.
Implementations§
Source§impl CryptoDepositDestination
impl CryptoDepositDestination
pub fn builder() -> CryptoDepositDestination
Trait Implementations§
Source§impl Clone for CryptoDepositDestination
impl Clone for CryptoDepositDestination
Source§fn clone(&self) -> CryptoDepositDestination
fn clone(&self) -> CryptoDepositDestination
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 CryptoDepositDestination
impl Debug for CryptoDepositDestination
Source§impl<'de> Deserialize<'de> for CryptoDepositDestination
impl<'de> Deserialize<'de> for CryptoDepositDestination
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<&CryptoDepositDestination> for CryptoDepositDestination
impl From<&CryptoDepositDestination> for CryptoDepositDestination
Source§fn from(value: &CryptoDepositDestination) -> Self
fn from(value: &CryptoDepositDestination) -> Self
Converts to this type from the input type.
Source§impl From<CryptoDepositDestination> for CryptoDepositDestination
impl From<CryptoDepositDestination> for CryptoDepositDestination
Source§fn from(value: CryptoDepositDestination) -> Self
fn from(value: CryptoDepositDestination) -> 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<DepositDestination> for CryptoDepositDestination
impl From<DepositDestination> for CryptoDepositDestination
Source§fn from(value: DepositDestination) -> Self
fn from(value: DepositDestination) -> Self
Converts to this type from the input type.
Source§impl Serialize for CryptoDepositDestination
impl Serialize for CryptoDepositDestination
Source§impl TryFrom<CryptoDepositDestination> for CryptoDepositDestination
impl TryFrom<CryptoDepositDestination> for CryptoDepositDestination
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CryptoDepositDestination) -> Result<Self, ConversionError>
fn try_from(value: CryptoDepositDestination) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CryptoDepositDestination
impl RefUnwindSafe for CryptoDepositDestination
impl Send for CryptoDepositDestination
impl Sync for CryptoDepositDestination
impl Unpin for CryptoDepositDestination
impl UnsafeUnpin for CryptoDepositDestination
impl UnwindSafe for CryptoDepositDestination
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