pub struct EvmAccount {
pub address: EvmAccountAddress,
pub created_at: Option<DateTime<Utc>>,
pub name: Option<EvmAccountName>,
pub policies: Vec<EvmAccountPoliciesItem>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
EvmAccount
JSON schema
{
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"description": "The 0x-prefixed, checksum EVM address.",
"examples": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"createdAt": {
"description": "The UTC ISO 8601 timestamp at which the account was created.",
"examples": [
"2025-03-25T12:00:00Z"
],
"type": "string",
"format": "date-time"
},
"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 are guaranteed to be unique across all EVM accounts in the developer's CDP Project.",
"examples": [
"my-account"
],
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"
},
"policies": {
"description": "The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists.",
"examples": [
[
"123e4567-e89b-12d3-a456-426614174000"
]
],
"type": "array",
"items": {
"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"
},
"updatedAt": {
"description": "The UTC ISO 8601 timestamp at which the account was last updated.",
"examples": [
"2025-03-26T12:00:00Z"
],
"type": "string",
"format": "date-time"
}
}
}
Fields§
§address: EvmAccountAddress
The 0x-prefixed, checksum EVM address.
created_at: Option<DateTime<Utc>>
The UTC ISO 8601 timestamp at which the account was created.
name: Option<EvmAccountName>
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 are guaranteed to be unique across all EVM accounts in the developer’s CDP Project.
policies: Vec<EvmAccountPoliciesItem>
The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists.
updated_at: Option<DateTime<Utc>>
The UTC ISO 8601 timestamp at which the account was last updated.
Implementations§
Source§impl EvmAccount
impl EvmAccount
pub fn builder() -> EvmAccount
Trait Implementations§
Source§impl Clone for EvmAccount
impl Clone for EvmAccount
Source§fn clone(&self) -> EvmAccount
fn clone(&self) -> EvmAccount
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 EvmAccount
impl Debug for EvmAccount
Source§impl<'de> Deserialize<'de> for EvmAccount
impl<'de> Deserialize<'de> for EvmAccount
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<&EvmAccount> for EvmAccount
impl From<&EvmAccount> for EvmAccount
Source§fn from(value: &EvmAccount) -> Self
fn from(value: &EvmAccount) -> Self
Converts to this type from the input type.
Source§impl From<EvmAccount> for EvmAccount
impl From<EvmAccount> for EvmAccount
Source§fn from(value: EvmAccount) -> Self
fn from(value: EvmAccount) -> Self
Converts to this type from the input type.
Source§impl Serialize for EvmAccount
impl Serialize for EvmAccount
Source§impl TryFrom<EvmAccount> for EvmAccount
impl TryFrom<EvmAccount> for EvmAccount
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EvmAccount) -> Result<Self, ConversionError>
fn try_from(value: EvmAccount) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EvmAccount
impl RefUnwindSafe for EvmAccount
impl Send for EvmAccount
impl Sync for EvmAccount
impl Unpin for EvmAccount
impl UnwindSafe for EvmAccount
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