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