pub struct CreateSolanaAccountBody {
pub account_policy: Option<CreateSolanaAccountBodyAccountPolicy>,
pub name: Option<CreateSolanaAccountBodyName>,
}
Expand description
CreateSolanaAccountBody
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 Solana 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<CreateSolanaAccountBodyAccountPolicy>
The ID of the account-level policy to apply to the account.
name: Option<CreateSolanaAccountBodyName>
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 Solana accounts in the developer’s CDP Project.
Implementations§
Source§impl CreateSolanaAccountBody
impl CreateSolanaAccountBody
pub fn builder() -> CreateSolanaAccountBody
Trait Implementations§
Source§impl Clone for CreateSolanaAccountBody
impl Clone for CreateSolanaAccountBody
Source§fn clone(&self) -> CreateSolanaAccountBody
fn clone(&self) -> CreateSolanaAccountBody
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 CreateSolanaAccountBody
impl Debug for CreateSolanaAccountBody
Source§impl Default for CreateSolanaAccountBody
impl Default for CreateSolanaAccountBody
Source§impl<'de> Deserialize<'de> for CreateSolanaAccountBody
impl<'de> Deserialize<'de> for CreateSolanaAccountBody
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<&CreateSolanaAccountBody> for CreateSolanaAccountBody
impl From<&CreateSolanaAccountBody> for CreateSolanaAccountBody
Source§fn from(value: &CreateSolanaAccountBody) -> Self
fn from(value: &CreateSolanaAccountBody) -> Self
Converts to this type from the input type.
Source§impl From<CreateSolanaAccountBody> for CreateSolanaAccountBody
impl From<CreateSolanaAccountBody> for CreateSolanaAccountBody
Source§fn from(value: CreateSolanaAccountBody) -> Self
fn from(value: CreateSolanaAccountBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateSolanaAccountBody
impl Serialize for CreateSolanaAccountBody
Source§impl TryFrom<CreateSolanaAccountBody> for CreateSolanaAccountBody
impl TryFrom<CreateSolanaAccountBody> for CreateSolanaAccountBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateSolanaAccountBody) -> Result<Self, ConversionError>
fn try_from(value: CreateSolanaAccountBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateSolanaAccountBody
impl RefUnwindSafe for CreateSolanaAccountBody
impl Send for CreateSolanaAccountBody
impl Sync for CreateSolanaAccountBody
impl Unpin for CreateSolanaAccountBody
impl UnwindSafe for CreateSolanaAccountBody
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