pub struct CreateEvmSmartAccountBody {
pub name: Option<CreateEvmSmartAccountBodyName>,
pub owners: Vec<CreateEvmSmartAccountBodyOwnersItem>,
}
Expand description
CreateEvmSmartAccountBody
JSON schema
{
"type": "object",
"required": [
"owners"
],
"properties": {
"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-smart-wallet"
],
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"
},
"owners": {
"description": "Today, only a single owner can be set for a Smart Account, but this is an array to allow setting multiple owners in the future.",
"examples": [
[
"0xfc807D1bE4997e5C7B33E4d8D57e60c5b0f02B1a"
]
],
"type": "array",
"items": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
}
}
}
Fields§
§name: Option<CreateEvmSmartAccountBodyName>
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.
owners: Vec<CreateEvmSmartAccountBodyOwnersItem>
Today, only a single owner can be set for a Smart Account, but this is an array to allow setting multiple owners in the future.
Implementations§
Source§impl CreateEvmSmartAccountBody
impl CreateEvmSmartAccountBody
pub fn builder() -> CreateEvmSmartAccountBody
Trait Implementations§
Source§impl Clone for CreateEvmSmartAccountBody
impl Clone for CreateEvmSmartAccountBody
Source§fn clone(&self) -> CreateEvmSmartAccountBody
fn clone(&self) -> CreateEvmSmartAccountBody
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 CreateEvmSmartAccountBody
impl Debug for CreateEvmSmartAccountBody
Source§impl<'de> Deserialize<'de> for CreateEvmSmartAccountBody
impl<'de> Deserialize<'de> for CreateEvmSmartAccountBody
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<&CreateEvmSmartAccountBody> for CreateEvmSmartAccountBody
impl From<&CreateEvmSmartAccountBody> for CreateEvmSmartAccountBody
Source§fn from(value: &CreateEvmSmartAccountBody) -> Self
fn from(value: &CreateEvmSmartAccountBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateEvmSmartAccountBody> for CreateEvmSmartAccountBody
impl From<CreateEvmSmartAccountBody> for CreateEvmSmartAccountBody
Source§fn from(value: CreateEvmSmartAccountBody) -> Self
fn from(value: CreateEvmSmartAccountBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CreateEvmSmartAccountBody> for CreateEvmSmartAccountBody
impl TryFrom<CreateEvmSmartAccountBody> for CreateEvmSmartAccountBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateEvmSmartAccountBody) -> Result<Self, ConversionError>
fn try_from(value: CreateEvmSmartAccountBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateEvmSmartAccountBody
impl RefUnwindSafe for CreateEvmSmartAccountBody
impl Send for CreateEvmSmartAccountBody
impl Sync for CreateEvmSmartAccountBody
impl Unpin for CreateEvmSmartAccountBody
impl UnwindSafe for CreateEvmSmartAccountBody
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