pub struct ImportSolanaAccountBody {
pub encrypted_private_key: String,
pub name: Option<ImportSolanaAccountBodyName>,
}
Expand description
ImportSolanaAccountBody
JSON schema
{
"type": "object",
"required": [
"encryptedPrivateKey"
],
"properties": {
"encryptedPrivateKey": {
"description": "The base64-encoded, encrypted 32-byte private key of the Solana 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-solana-wallet"
],
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"
}
}
}
Fields§
§encrypted_private_key: String
The base64-encoded, encrypted 32-byte private key of the Solana account. The private key must be encrypted using the CDP SDK’s encryption scheme.
name: Option<ImportSolanaAccountBodyName>
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 ImportSolanaAccountBody
impl ImportSolanaAccountBody
pub fn builder() -> ImportSolanaAccountBody
Trait Implementations§
Source§impl Clone for ImportSolanaAccountBody
impl Clone for ImportSolanaAccountBody
Source§fn clone(&self) -> ImportSolanaAccountBody
fn clone(&self) -> ImportSolanaAccountBody
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 ImportSolanaAccountBody
impl Debug for ImportSolanaAccountBody
Source§impl<'de> Deserialize<'de> for ImportSolanaAccountBody
impl<'de> Deserialize<'de> for ImportSolanaAccountBody
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<&ImportSolanaAccountBody> for ImportSolanaAccountBody
impl From<&ImportSolanaAccountBody> for ImportSolanaAccountBody
Source§fn from(value: &ImportSolanaAccountBody) -> Self
fn from(value: &ImportSolanaAccountBody) -> Self
Converts to this type from the input type.
Source§impl From<ImportSolanaAccountBody> for ImportSolanaAccountBody
impl From<ImportSolanaAccountBody> for ImportSolanaAccountBody
Source§fn from(value: ImportSolanaAccountBody) -> Self
fn from(value: ImportSolanaAccountBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for ImportSolanaAccountBody
impl Serialize for ImportSolanaAccountBody
Source§impl TryFrom<ImportSolanaAccountBody> for ImportSolanaAccountBody
impl TryFrom<ImportSolanaAccountBody> for ImportSolanaAccountBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ImportSolanaAccountBody) -> Result<Self, ConversionError>
fn try_from(value: ImportSolanaAccountBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ImportSolanaAccountBody
impl RefUnwindSafe for ImportSolanaAccountBody
impl Send for ImportSolanaAccountBody
impl Sync for ImportSolanaAccountBody
impl Unpin for ImportSolanaAccountBody
impl UnwindSafe for ImportSolanaAccountBody
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