pub struct AccountInterface {
pub account: SolanaAccountData,
pub cold: Option<Vec<AccountV2>>,
pub key: SerializablePubkey,
}Expand description
Unified account interface — works for both on-chain and compressed accounts
JSON schema
{
"description": "Unified account interface — works for both on-chain and compressed accounts",
"type": "object",
"required": [
"account",
"key"
],
"properties": {
"account": {
"$ref": "#/components/schemas/SolanaAccountData"
},
"cold": {
"description": "Compressed accounts associated with this pubkey",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/AccountV2"
}
},
"key": {
"$ref": "#/components/schemas/SerializablePubkey"
}
}
}Fields§
§account: SolanaAccountData§cold: Option<Vec<AccountV2>>Compressed accounts associated with this pubkey
key: SerializablePubkeyImplementations§
Source§impl AccountInterface
impl AccountInterface
pub fn builder() -> AccountInterface
Trait Implementations§
Source§impl Clone for AccountInterface
impl Clone for AccountInterface
Source§fn clone(&self) -> AccountInterface
fn clone(&self) -> AccountInterface
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 AccountInterface
impl Debug for AccountInterface
Source§impl<'de> Deserialize<'de> for AccountInterface
impl<'de> Deserialize<'de> for AccountInterface
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<AccountInterface> for AccountInterface
impl From<AccountInterface> for AccountInterface
Source§fn from(value: AccountInterface) -> Self
fn from(value: AccountInterface) -> Self
Converts to this type from the input type.
Source§impl Serialize for AccountInterface
impl Serialize for AccountInterface
Source§impl TryFrom<AccountInterface> for AccountInterface
impl TryFrom<AccountInterface> for AccountInterface
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AccountInterface) -> Result<Self, ConversionError>
fn try_from(value: AccountInterface) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AccountInterface
impl RefUnwindSafe for AccountInterface
impl Send for AccountInterface
impl Sync for AccountInterface
impl Unpin for AccountInterface
impl UnsafeUnpin for AccountInterface
impl UnwindSafe for AccountInterface
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