pub struct CreateEvmAccountBody {
pub account_policy: Option<CreateEvmAccountBodyAccountPolicy>,
pub name: Option<CreateEvmAccountBodyName>,
}
Expand description
CreateEvmAccountBody
JSON schema
{
"type": "object",
"properties": {
"accountPolicy": {
"description": "The ID of the account-level policy to apply to the account.",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"x-audience": "public"
},
"name": {
"description": "An optional name for the account.\nAccount names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.\nAccount names must be unique across all EVM accounts in the developer's CDP Project.",
"examples": [
"my-wallet"
],
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"
}
}
}
Fields§
§account_policy: Option<CreateEvmAccountBodyAccountPolicy>
The ID of the account-level policy to apply to the account.
name: Option<CreateEvmAccountBodyName>
An optional name for the account. Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long. Account names must be unique across all EVM accounts in the developer’s CDP Project.
Implementations§
Source§impl CreateEvmAccountBody
impl CreateEvmAccountBody
pub fn builder() -> CreateEvmAccountBody
Trait Implementations§
Source§impl Clone for CreateEvmAccountBody
impl Clone for CreateEvmAccountBody
Source§fn clone(&self) -> CreateEvmAccountBody
fn clone(&self) -> CreateEvmAccountBody
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateEvmAccountBody
impl Debug for CreateEvmAccountBody
Source§impl Default for CreateEvmAccountBody
impl Default for CreateEvmAccountBody
Source§impl<'de> Deserialize<'de> for CreateEvmAccountBody
impl<'de> Deserialize<'de> for CreateEvmAccountBody
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<&CreateEvmAccountBody> for CreateEvmAccountBody
impl From<&CreateEvmAccountBody> for CreateEvmAccountBody
Source§fn from(value: &CreateEvmAccountBody) -> Self
fn from(value: &CreateEvmAccountBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateEvmAccountBody> for CreateEvmAccountBody
impl From<CreateEvmAccountBody> for CreateEvmAccountBody
Source§fn from(value: CreateEvmAccountBody) -> Self
fn from(value: CreateEvmAccountBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateEvmAccountBody
impl Serialize for CreateEvmAccountBody
Source§impl TryFrom<CreateEvmAccountBody> for CreateEvmAccountBody
impl TryFrom<CreateEvmAccountBody> for CreateEvmAccountBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateEvmAccountBody) -> Result<Self, ConversionError>
fn try_from(value: CreateEvmAccountBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateEvmAccountBody
impl RefUnwindSafe for CreateEvmAccountBody
impl Send for CreateEvmAccountBody
impl Sync for CreateEvmAccountBody
impl Unpin for CreateEvmAccountBody
impl UnwindSafe for CreateEvmAccountBody
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