pub struct SolanaAccountData {
pub data: Base64String,
pub executable: bool,
pub lamports: UnsignedInteger,
pub owner: SerializablePubkey,
pub rent_epoch: UnsignedInteger,
pub space: UnsignedInteger,
}Expand description
Nested Solana account fields (matches getAccountInfo shape)
JSON schema
{
"description": "Nested Solana account fields (matches getAccountInfo shape)",
"type": "object",
"required": [
"data",
"executable",
"lamports",
"owner",
"rentEpoch",
"space"
],
"properties": {
"data": {
"$ref": "#/components/schemas/Base64String"
},
"executable": {
"type": "boolean"
},
"lamports": {
"$ref": "#/components/schemas/UnsignedInteger"
},
"owner": {
"$ref": "#/components/schemas/SerializablePubkey"
},
"rentEpoch": {
"$ref": "#/components/schemas/UnsignedInteger"
},
"space": {
"$ref": "#/components/schemas/UnsignedInteger"
}
}
}Fields§
§data: Base64String§executable: bool§lamports: UnsignedInteger§owner: SerializablePubkey§rent_epoch: UnsignedInteger§space: UnsignedIntegerImplementations§
Source§impl SolanaAccountData
impl SolanaAccountData
pub fn builder() -> SolanaAccountData
Trait Implementations§
Source§impl Clone for SolanaAccountData
impl Clone for SolanaAccountData
Source§fn clone(&self) -> SolanaAccountData
fn clone(&self) -> SolanaAccountData
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 SolanaAccountData
impl Debug for SolanaAccountData
Source§impl<'de> Deserialize<'de> for SolanaAccountData
impl<'de> Deserialize<'de> for SolanaAccountData
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<SolanaAccountData> for SolanaAccountData
impl From<SolanaAccountData> for SolanaAccountData
Source§fn from(value: SolanaAccountData) -> Self
fn from(value: SolanaAccountData) -> Self
Converts to this type from the input type.
Source§impl Serialize for SolanaAccountData
impl Serialize for SolanaAccountData
Source§impl TryFrom<SolanaAccountData> for SolanaAccountData
impl TryFrom<SolanaAccountData> for SolanaAccountData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolanaAccountData) -> Result<Self, ConversionError>
fn try_from(value: SolanaAccountData) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolanaAccountData
impl RefUnwindSafe for SolanaAccountData
impl Send for SolanaAccountData
impl Sync for SolanaAccountData
impl Unpin for SolanaAccountData
impl UnsafeUnpin for SolanaAccountData
impl UnwindSafe for SolanaAccountData
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