pub struct DepositDestinationTargetAccount {
pub account_id: Option<AccountId>,
pub asset: Asset,
}Expand description
The account and asset where incoming deposits should be credited.
JSON schema
{
"title": "Target Account",
"description": "The account and asset where incoming deposits should be credited.",
"examples": [
{
"accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
"asset": "usd"
}
],
"type": "object",
"required": [
"asset"
],
"properties": {
"accountId": {
"description": "The ID of the CDP Account to which deposited funds should be transferred.",
"allOf": [
{
"$ref": "#/components/schemas/AccountId"
}
]
},
"asset": {
"description": "The symbol of the asset that should land in the target account.",
"examples": [
"usd"
],
"allOf": [
{
"$ref": "#/components/schemas/Asset"
}
]
}
},
"additionalProperties": false
}Fields§
§account_id: Option<AccountId>The ID of the CDP Account to which deposited funds should be transferred.
asset: AssetThe symbol of the asset that should land in the target account.
Implementations§
Trait Implementations§
Source§impl Clone for DepositDestinationTargetAccount
impl Clone for DepositDestinationTargetAccount
Source§fn clone(&self) -> DepositDestinationTargetAccount
fn clone(&self) -> DepositDestinationTargetAccount
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 DepositDestinationTargetAccount
impl<'de> Deserialize<'de> for DepositDestinationTargetAccount
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<&DepositDestinationTargetAccount> for DepositDestinationTargetAccount
impl From<&DepositDestinationTargetAccount> for DepositDestinationTargetAccount
Source§fn from(value: &DepositDestinationTargetAccount) -> Self
fn from(value: &DepositDestinationTargetAccount) -> Self
Converts to this type from the input type.
Source§impl From<DepositDestinationTarget> for DepositDestinationTargetAccount
impl From<DepositDestinationTarget> for DepositDestinationTargetAccount
Source§fn from(value: DepositDestinationTarget) -> Self
fn from(value: DepositDestinationTarget) -> Self
Converts to this type from the input type.
Source§impl From<DepositDestinationTargetAccount> for DepositDestinationTarget
impl From<DepositDestinationTargetAccount> for DepositDestinationTarget
Source§fn from(value: DepositDestinationTargetAccount) -> Self
fn from(value: DepositDestinationTargetAccount) -> Self
Converts to this type from the input type.
Source§impl From<DepositDestinationTargetAccount> for DepositDestinationTargetAccount
impl From<DepositDestinationTargetAccount> for DepositDestinationTargetAccount
Source§fn from(value: DepositDestinationTargetAccount) -> Self
fn from(value: DepositDestinationTargetAccount) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DepositDestinationTargetAccount> for DepositDestinationTargetAccount
impl TryFrom<DepositDestinationTargetAccount> for DepositDestinationTargetAccount
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: DepositDestinationTargetAccount,
) -> Result<Self, ConversionError>
fn try_from( value: DepositDestinationTargetAccount, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DepositDestinationTargetAccount
impl RefUnwindSafe for DepositDestinationTargetAccount
impl Send for DepositDestinationTargetAccount
impl Sync for DepositDestinationTargetAccount
impl Unpin for DepositDestinationTargetAccount
impl UnsafeUnpin for DepositDestinationTargetAccount
impl UnwindSafe for DepositDestinationTargetAccount
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