pub struct CompressedAccount {
pub address: Option<[u8; 32]>,
pub data: Option<CompressedAccountData>,
pub hash: [u8; 32],
pub lamports: u64,
pub leaf_index: u32,
pub owner: Pubkey,
pub prove_by_index: bool,
pub seq: Option<u64>,
pub slot_created: u64,
pub tree_info: TreeInfo,
}Fields§
§address: Option<[u8; 32]>§data: Option<CompressedAccountData>§hash: [u8; 32]§lamports: u64§leaf_index: u32§owner: Pubkey§prove_by_index: bool§seq: Option<u64>§slot_created: u64§tree_info: TreeInfoTrait Implementations§
Source§impl Clone for CompressedAccount
impl Clone for CompressedAccount
Source§fn clone(&self) -> CompressedAccount
fn clone(&self) -> CompressedAccount
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 CompressedAccount
impl Debug for CompressedAccount
Source§impl Default for CompressedAccount
impl Default for CompressedAccount
Source§fn default() -> CompressedAccount
fn default() -> CompressedAccount
Returns the “default value” for a type. Read more
Source§impl From<CompressedAccount> for CompressedAccountWithMerkleContext
impl From<CompressedAccount> for CompressedAccountWithMerkleContext
Source§fn from(account: CompressedAccount) -> Self
fn from(account: CompressedAccount) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CompressedAccount
impl PartialEq for CompressedAccount
Source§impl TryFrom<&Account> for CompressedAccount
impl TryFrom<&Account> for CompressedAccount
Source§impl TryFrom<&AccountV2> for CompressedAccount
impl TryFrom<&AccountV2> for CompressedAccount
Source§impl TryFrom<CompressedAccountWithMerkleContext> for CompressedAccount
impl TryFrom<CompressedAccountWithMerkleContext> for CompressedAccount
Source§type Error = IndexerError
type Error = IndexerError
The type returned in the event of a conversion error.
impl StructuralPartialEq for CompressedAccount
Auto Trait Implementations§
impl Freeze for CompressedAccount
impl RefUnwindSafe for CompressedAccount
impl Send for CompressedAccount
impl Sync for CompressedAccount
impl Unpin for CompressedAccount
impl UnwindSafe for CompressedAccount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more