pub struct UpdateEvmAccountBody {
pub account_policy: Option<UpdateEvmAccountBodyAccountPolicy>,
pub name: Option<UpdateEvmAccountBodyName>,
}
Expand description
UpdateEvmAccountBody
JSON schema
{
"type": "object",
"properties": {
"accountPolicy": {
"description": "The ID of the account-level policy to apply to the account, or an empty string to unset attached policy.",
"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<UpdateEvmAccountBodyAccountPolicy>
The ID of the account-level policy to apply to the account, or an empty string to unset attached policy.
name: Option<UpdateEvmAccountBodyName>
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 UpdateEvmAccountBody
impl UpdateEvmAccountBody
pub fn builder() -> UpdateEvmAccountBody
Trait Implementations§
Source§impl Clone for UpdateEvmAccountBody
impl Clone for UpdateEvmAccountBody
Source§fn clone(&self) -> UpdateEvmAccountBody
fn clone(&self) -> UpdateEvmAccountBody
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 UpdateEvmAccountBody
impl Debug for UpdateEvmAccountBody
Source§impl Default for UpdateEvmAccountBody
impl Default for UpdateEvmAccountBody
Source§impl<'de> Deserialize<'de> for UpdateEvmAccountBody
impl<'de> Deserialize<'de> for UpdateEvmAccountBody
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<&UpdateEvmAccountBody> for UpdateEvmAccountBody
impl From<&UpdateEvmAccountBody> for UpdateEvmAccountBody
Source§fn from(value: &UpdateEvmAccountBody) -> Self
fn from(value: &UpdateEvmAccountBody) -> Self
Converts to this type from the input type.
Source§impl From<UpdateEvmAccountBody> for UpdateEvmAccountBody
impl From<UpdateEvmAccountBody> for UpdateEvmAccountBody
Source§fn from(value: UpdateEvmAccountBody) -> Self
fn from(value: UpdateEvmAccountBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for UpdateEvmAccountBody
impl Serialize for UpdateEvmAccountBody
Source§impl TryFrom<UpdateEvmAccountBody> for UpdateEvmAccountBody
impl TryFrom<UpdateEvmAccountBody> for UpdateEvmAccountBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UpdateEvmAccountBody) -> Result<Self, ConversionError>
fn try_from(value: UpdateEvmAccountBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UpdateEvmAccountBody
impl RefUnwindSafe for UpdateEvmAccountBody
impl Send for UpdateEvmAccountBody
impl Sync for UpdateEvmAccountBody
impl Unpin for UpdateEvmAccountBody
impl UnwindSafe for UpdateEvmAccountBody
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