pub struct SolanaAccount {
pub address: SolanaAccountAddress,
pub created_at: Option<DateTime<Utc>>,
pub name: Option<SolanaAccountName>,
pub policies: Vec<SolanaAccountPoliciesItem>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
SolanaAccount
JSON schema
{
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"description": "The base58 encoded Solana address.",
"examples": [
"HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT"
],
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
},
"createdAt": {
"description": "The ISO 8601 UTC timestamp at which the account was created.",
"examples": [
"2025-03-25T12:00:00Z"
],
"type": "string",
"format": "date-time"
},
"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 are guaranteed to be unique across all Solana accounts in the developer's CDP Project.",
"examples": [
"my-account"
],
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"
},
"policies": {
"description": "The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists.",
"examples": [
[
"123e4567-e89b-12d3-a456-426614174000"
]
],
"type": "array",
"items": {
"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"
},
"updatedAt": {
"description": "The ISO 8601 UTC timestamp at which the account was last updated.",
"examples": [
"2025-03-26T12:00:00Z"
],
"type": "string",
"format": "date-time"
}
}
}
Fields§
§address: SolanaAccountAddress
The base58 encoded Solana address.
created_at: Option<DateTime<Utc>>
The ISO 8601 UTC timestamp at which the account was created.
name: Option<SolanaAccountName>
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 are guaranteed to be unique across all Solana accounts in the developer’s CDP Project.
policies: Vec<SolanaAccountPoliciesItem>
The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists.
updated_at: Option<DateTime<Utc>>
The ISO 8601 UTC timestamp at which the account was last updated.
Implementations§
Source§impl SolanaAccount
impl SolanaAccount
pub fn builder() -> SolanaAccount
Trait Implementations§
Source§impl Clone for SolanaAccount
impl Clone for SolanaAccount
Source§fn clone(&self) -> SolanaAccount
fn clone(&self) -> SolanaAccount
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 SolanaAccount
impl Debug for SolanaAccount
Source§impl<'de> Deserialize<'de> for SolanaAccount
impl<'de> Deserialize<'de> for SolanaAccount
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<&SolanaAccount> for SolanaAccount
impl From<&SolanaAccount> for SolanaAccount
Source§fn from(value: &SolanaAccount) -> Self
fn from(value: &SolanaAccount) -> Self
Converts to this type from the input type.
Source§impl From<SolanaAccount> for SolanaAccount
impl From<SolanaAccount> for SolanaAccount
Source§fn from(value: SolanaAccount) -> Self
fn from(value: SolanaAccount) -> Self
Converts to this type from the input type.
Source§impl Serialize for SolanaAccount
impl Serialize for SolanaAccount
Source§impl TryFrom<SolanaAccount> for SolanaAccount
impl TryFrom<SolanaAccount> for SolanaAccount
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolanaAccount) -> Result<Self, ConversionError>
fn try_from(value: SolanaAccount) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolanaAccount
impl RefUnwindSafe for SolanaAccount
impl Send for SolanaAccount
impl Sync for SolanaAccount
impl Unpin for SolanaAccount
impl UnwindSafe for SolanaAccount
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