pub struct CreateAccountRequest {
pub compliance: Option<Compliance>,
pub name: Option<AccountName>,
pub owner: Option<Owner>,
}Expand description
CreateAccountRequest
JSON schema
{
"type": "object",
"properties": {
"compliance": {
"$ref": "#/components/schemas/Compliance"
},
"name": {
"$ref": "#/components/schemas/AccountName"
},
"owner": {
"description": "The Owner of the Account to create.\n* If omitted, the account will be owned by the Entity making the request.\n* If the account is for a customer, the value will be a Customer ID,\n e.g. `customer_af2937b0-9846-4fe7-bfe9-ccc22d935114`.\n\n* Further, the corresponding Customer must have all of the following capabilities enabled:\n - `custodyCrypto`\n - `custodyFiat`\n - `custodyStablecoin`.",
"examples": [
"customer_af2937b0-9846-4fe7-bfe9-ccc22d935114"
],
"allOf": [
{
"$ref": "#/components/schemas/Owner"
}
]
}
}
}Fields§
§compliance: Option<Compliance>§name: Option<AccountName>§owner: Option<Owner>The Owner of the Account to create.
* If omitted, the account will be owned by the Entity making the request.
* If the account is for a customer, the value will be a Customer ID,
e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114.
* Further, the corresponding Customer must have all of the following capabilities enabled:
- `custodyCrypto`
- `custodyFiat`
- `custodyStablecoin`.Implementations§
Source§impl CreateAccountRequest
impl CreateAccountRequest
pub fn builder() -> CreateAccountRequest
Trait Implementations§
Source§impl Clone for CreateAccountRequest
impl Clone for CreateAccountRequest
Source§impl Debug for CreateAccountRequest
impl Debug for CreateAccountRequest
Source§impl Default for CreateAccountRequest
impl Default for CreateAccountRequest
Source§impl<'de> Deserialize<'de> for CreateAccountRequest
impl<'de> Deserialize<'de> for CreateAccountRequest
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<&CreateAccountRequest> for CreateAccountRequest
impl From<&CreateAccountRequest> for CreateAccountRequest
Source§fn from(value: &CreateAccountRequest) -> Self
fn from(value: &CreateAccountRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateAccountRequest> for CreateAccountRequest
impl From<CreateAccountRequest> for CreateAccountRequest
Source§fn from(value: CreateAccountRequest) -> Self
fn from(value: CreateAccountRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateAccountRequest
impl Serialize for CreateAccountRequest
Source§impl TryFrom<CreateAccountRequest> for CreateAccountRequest
impl TryFrom<CreateAccountRequest> for CreateAccountRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateAccountRequest) -> Result<Self, ConversionError>
fn try_from(value: CreateAccountRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateAccountRequest
impl RefUnwindSafe for CreateAccountRequest
impl Send for CreateAccountRequest
impl Sync for CreateAccountRequest
impl Unpin for CreateAccountRequest
impl UnsafeUnpin for CreateAccountRequest
impl UnwindSafe for CreateAccountRequest
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