pub struct CapabilitiesMap {
pub custody_crypto: Option<Capability>,
pub custody_fiat: Option<Capability>,
pub custody_stablecoin: Option<Capability>,
pub trade_crypto: Option<Capability>,
pub trade_stablecoin: Option<Capability>,
pub transfer_crypto: Option<Capability>,
pub transfer_fiat: Option<Capability>,
pub transfer_stablecoin: Option<Capability>,
}Expand description
The current state of each capability for a Customer. Each capability shows whether it has been requested and its current status.
JSON schema
{
"description": "The current state of each capability for a Customer. Each capability shows\nwhether it has been requested and its current status.\n",
"examples": [
{
"custodyCrypto": {
"requested": true,
"status": "active"
},
"custodyFiat": {
"requested": false,
"status": "unrequested"
},
"custodyStablecoin": {
"requested": false,
"status": "unrequested"
},
"tradeCrypto": {
"requested": false,
"status": "unrequested"
},
"tradeStablecoin": {
"requested": false,
"status": "unrequested"
},
"transferCrypto": {
"requested": true,
"status": "active"
},
"transferFiat": {
"requested": false,
"status": "unrequested"
},
"transferStablecoin": {
"requested": false,
"status": "unrequested"
}
}
],
"type": "object",
"properties": {
"custodyCrypto": {
"description": "Hold cryptocurrency in a Coinbase custodial account.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
},
"custodyFiat": {
"description": "Hold fiat currency in a Coinbase custodial account.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
},
"custodyStablecoin": {
"description": "Hold stablecoin in a Coinbase custodial account.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
},
"tradeCrypto": {
"description": "Trade cryptocurrency.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
},
"tradeStablecoin": {
"description": "Trade stablecoin.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
},
"transferCrypto": {
"description": "Transfer cryptocurrency to another party.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
},
"transferFiat": {
"description": "Transfer fiat currency to another party.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
},
"transferStablecoin": {
"description": "Transfer stablecoin to another party.",
"allOf": [
{
"$ref": "#/components/schemas/Capability"
}
]
}
}
}Fields§
§custody_crypto: Option<Capability>Hold cryptocurrency in a Coinbase custodial account.
custody_fiat: Option<Capability>Hold fiat currency in a Coinbase custodial account.
custody_stablecoin: Option<Capability>Hold stablecoin in a Coinbase custodial account.
trade_crypto: Option<Capability>Trade cryptocurrency.
trade_stablecoin: Option<Capability>Trade stablecoin.
transfer_crypto: Option<Capability>Transfer cryptocurrency to another party.
transfer_fiat: Option<Capability>Transfer fiat currency to another party.
transfer_stablecoin: Option<Capability>Transfer stablecoin to another party.
Implementations§
Source§impl CapabilitiesMap
impl CapabilitiesMap
pub fn builder() -> CapabilitiesMap
Trait Implementations§
Source§impl Clone for CapabilitiesMap
impl Clone for CapabilitiesMap
Source§impl Debug for CapabilitiesMap
impl Debug for CapabilitiesMap
Source§impl Default for CapabilitiesMap
impl Default for CapabilitiesMap
Source§impl<'de> Deserialize<'de> for CapabilitiesMap
impl<'de> Deserialize<'de> for CapabilitiesMap
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<&CapabilitiesMap> for CapabilitiesMap
impl From<&CapabilitiesMap> for CapabilitiesMap
Source§fn from(value: &CapabilitiesMap) -> Self
fn from(value: &CapabilitiesMap) -> Self
Converts to this type from the input type.
Source§impl From<CapabilitiesMap> for CapabilitiesMap
impl From<CapabilitiesMap> for CapabilitiesMap
Source§fn from(value: CapabilitiesMap) -> Self
fn from(value: CapabilitiesMap) -> Self
Converts to this type from the input type.
Source§impl Serialize for CapabilitiesMap
impl Serialize for CapabilitiesMap
Source§impl TryFrom<CapabilitiesMap> for CapabilitiesMap
impl TryFrom<CapabilitiesMap> for CapabilitiesMap
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CapabilitiesMap) -> Result<Self, ConversionError>
fn try_from(value: CapabilitiesMap) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CapabilitiesMap
impl RefUnwindSafe for CapabilitiesMap
impl Send for CapabilitiesMap
impl Sync for CapabilitiesMap
impl Unpin for CapabilitiesMap
impl UnsafeUnpin for CapabilitiesMap
impl UnwindSafe for CapabilitiesMap
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