pub struct ImportEvmAccountBody {
pub account_policy: Option<ImportEvmAccountBodyAccountPolicy>,
pub encrypted_private_key: String,
pub name: Option<ImportEvmAccountBodyName>,
}
Expand description
ImportEvmAccountBody
JSON schema
{
"type": "object",
"required": [
"encryptedPrivateKey"
],
"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"
},
"encryptedPrivateKey": {
"description": "The base64-encoded, encrypted private key of the EVM account. The private key must be encrypted using the CDP SDK's encryption scheme.",
"examples": [
"U2FsdGVkX1+vupppZksvRf5X5YgHq4+da+Q4qf51+Q4="
],
"type": "string"
},
"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<ImportEvmAccountBodyAccountPolicy>
The ID of the account-level policy to apply to the account.
encrypted_private_key: String
The base64-encoded, encrypted private key of the EVM account. The private key must be encrypted using the CDP SDK’s encryption scheme.
name: Option<ImportEvmAccountBodyName>
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 ImportEvmAccountBody
impl ImportEvmAccountBody
pub fn builder() -> ImportEvmAccountBody
Trait Implementations§
Source§impl Clone for ImportEvmAccountBody
impl Clone for ImportEvmAccountBody
Source§fn clone(&self) -> ImportEvmAccountBody
fn clone(&self) -> ImportEvmAccountBody
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 ImportEvmAccountBody
impl Debug for ImportEvmAccountBody
Source§impl<'de> Deserialize<'de> for ImportEvmAccountBody
impl<'de> Deserialize<'de> for ImportEvmAccountBody
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<&ImportEvmAccountBody> for ImportEvmAccountBody
impl From<&ImportEvmAccountBody> for ImportEvmAccountBody
Source§fn from(value: &ImportEvmAccountBody) -> Self
fn from(value: &ImportEvmAccountBody) -> Self
Converts to this type from the input type.
Source§impl From<ImportEvmAccountBody> for ImportEvmAccountBody
impl From<ImportEvmAccountBody> for ImportEvmAccountBody
Source§fn from(value: ImportEvmAccountBody) -> Self
fn from(value: ImportEvmAccountBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for ImportEvmAccountBody
impl Serialize for ImportEvmAccountBody
Source§impl TryFrom<ImportEvmAccountBody> for ImportEvmAccountBody
impl TryFrom<ImportEvmAccountBody> for ImportEvmAccountBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ImportEvmAccountBody) -> Result<Self, ConversionError>
fn try_from(value: ImportEvmAccountBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ImportEvmAccountBody
impl RefUnwindSafe for ImportEvmAccountBody
impl Send for ImportEvmAccountBody
impl Sync for ImportEvmAccountBody
impl Unpin for ImportEvmAccountBody
impl UnwindSafe for ImportEvmAccountBody
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