pub struct FiatDepositDestination {
pub account_id: AccountId,
pub created_at: DateTime<Utc>,
pub deposit_destination_id: DepositDestinationId,
pub fiat: DepositDestinationFiat,
pub metadata: Option<Metadata>,
pub status: DepositDestinationStatus,
pub target: Option<DepositDestinationTarget>,
pub type_: FiatDepositDestinationType,
pub updated_at: DateTime<Utc>,
}Expand description
A fiat deposit destination. Represents a single bank account provisioned at a single banking partner. Each deposit destination has one status and one lifecycle. The fiat object contains the bank account details, keyed by account type.
JSON schema
{
"title": "Fiat",
"description": "A fiat deposit destination. Represents a single bank account provisioned at a single banking partner. Each deposit destination has one status and one lifecycle. The `fiat` object contains the bank account details, keyed by account type.",
"examples": [
{
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"createdAt": "2025-06-01T00:00:00Z",
"depositDestinationId": "depositDestination_cf4958d2-b068-6bf9-da01-eee44f157336",
"fiat": {
"accountNumber": "123456789",
"accountType": "us_bank",
"bankAddress": "399 Park Avenue, New York, NY 10022",
"bankName": "Citibank N.A.",
"beneficiaryName": "John Smith",
"currency": "usd",
"routingNumber": "987654321",
"supportedRails": [
"ach",
"fedwire"
]
},
"metadata": {
"customer_id": "123e4567-e89b-12d3-a456-426614174000",
"reference": "order-12345"
},
"status": "pending",
"target": {
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"asset": "usdc"
},
"type": "fiat",
"updatedAt": "2025-06-01T00:00:00Z"
}
],
"type": "object",
"required": [
"accountId",
"createdAt",
"depositDestinationId",
"fiat",
"status",
"type",
"updatedAt"
],
"properties": {
"accountId": {
"$ref": "#/components/schemas/AccountId"
},
"createdAt": {
"description": "The timestamp when the deposit destination was created.",
"examples": [
"2025-06-01T00:00:00Z"
],
"type": "string",
"format": "date-time"
},
"depositDestinationId": {
"$ref": "#/components/schemas/DepositDestinationId"
},
"fiat": {
"$ref": "#/components/schemas/DepositDestinationFiat"
},
"metadata": {
"$ref": "#/components/schemas/Metadata"
},
"status": {
"$ref": "#/components/schemas/DepositDestinationStatus"
},
"target": {
"$ref": "#/components/schemas/DepositDestinationTarget"
},
"type": {
"description": "The type of deposit destination.",
"examples": [
"fiat"
],
"type": "string",
"enum": [
"fiat"
]
},
"updatedAt": {
"description": "The timestamp when the deposit destination was last updated.",
"examples": [
"2025-06-01T00:00:00Z"
],
"type": "string",
"format": "date-time"
}
},
"x-audience": "public"
}Fields§
§account_id: AccountId§created_at: DateTime<Utc>The timestamp when the deposit destination was created.
deposit_destination_id: DepositDestinationId§fiat: DepositDestinationFiat§metadata: Option<Metadata>§status: DepositDestinationStatus§target: Option<DepositDestinationTarget>§type_: FiatDepositDestinationTypeThe type of deposit destination.
updated_at: DateTime<Utc>The timestamp when the deposit destination was last updated.
Implementations§
Source§impl FiatDepositDestination
impl FiatDepositDestination
pub fn builder() -> FiatDepositDestination
Trait Implementations§
Source§impl Clone for FiatDepositDestination
impl Clone for FiatDepositDestination
Source§impl Debug for FiatDepositDestination
impl Debug for FiatDepositDestination
Source§impl<'de> Deserialize<'de> for FiatDepositDestination
impl<'de> Deserialize<'de> for FiatDepositDestination
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<&FiatDepositDestination> for FiatDepositDestination
impl From<&FiatDepositDestination> for FiatDepositDestination
Source§fn from(value: &FiatDepositDestination) -> Self
fn from(value: &FiatDepositDestination) -> 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.
Source§impl From<FiatDepositDestination> for FiatDepositDestination
impl From<FiatDepositDestination> for FiatDepositDestination
Source§fn from(value: FiatDepositDestination) -> Self
fn from(value: FiatDepositDestination) -> Self
Converts to this type from the input type.
Source§impl Serialize for FiatDepositDestination
impl Serialize for FiatDepositDestination
Source§impl TryFrom<FiatDepositDestination> for FiatDepositDestination
impl TryFrom<FiatDepositDestination> for FiatDepositDestination
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: FiatDepositDestination) -> Result<Self, ConversionError>
fn try_from(value: FiatDepositDestination) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for FiatDepositDestination
impl RefUnwindSafe for FiatDepositDestination
impl Send for FiatDepositDestination
impl Sync for FiatDepositDestination
impl Unpin for FiatDepositDestination
impl UnsafeUnpin for FiatDepositDestination
impl UnwindSafe for FiatDepositDestination
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