pub struct NextTreeInfo {
pub cpi_context: Option<Pubkey>,
pub queue: Pubkey,
pub tree: Pubkey,
pub tree_type: TreeType,
}Fields§
§cpi_context: Option<Pubkey>§queue: Pubkey§tree: Pubkey§tree_type: TreeTypeImplementations§
Source§impl NextTreeInfo
impl NextTreeInfo
Sourcepub fn pack_output_tree_index(
&self,
packed_accounts: &mut PackedAccounts,
) -> Result<u8, IndexerError>
pub fn pack_output_tree_index( &self, packed_accounts: &mut PackedAccounts, ) -> Result<u8, IndexerError>
Get the index of the output tree in the packed accounts. For StateV1, it returns the index of the tree account. For StateV2, it returns the index of the queue account. (For V2 trees new state is inserted into the output queue. The forester updates the tree from the queue asynchronously.)
pub fn from_api_model(value: &TreeContextInfo) -> Result<Self, IndexerError>
Trait Implementations§
Source§impl Clone for NextTreeInfo
impl Clone for NextTreeInfo
Source§fn clone(&self) -> NextTreeInfo
fn clone(&self) -> NextTreeInfo
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 NextTreeInfo
impl Debug for NextTreeInfo
Source§impl Default for NextTreeInfo
impl Default for NextTreeInfo
Source§fn default() -> NextTreeInfo
fn default() -> NextTreeInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for NextTreeInfo
impl PartialEq for NextTreeInfo
Source§impl TryFrom<&TreeContextInfo> for NextTreeInfo
impl TryFrom<&TreeContextInfo> for NextTreeInfo
Source§type Error = IndexerError
type Error = IndexerError
The type returned in the event of a conversion error.
impl Copy for NextTreeInfo
impl StructuralPartialEq for NextTreeInfo
Auto Trait Implementations§
impl Freeze for NextTreeInfo
impl RefUnwindSafe for NextTreeInfo
impl Send for NextTreeInfo
impl Sync for NextTreeInfo
impl Unpin for NextTreeInfo
impl UnwindSafe for NextTreeInfo
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