Struct account_compression::utils::queue::QueueBundle
source · pub struct QueueBundle<'info> {
pub queue: &'info AccountInfo<'info>,
pub merkle_tree: &'info AccountInfo<'info>,
pub elements: Vec<[u8; 32]>,
}
Expand description
A bundle containing:
- Address queue.
- Merkle tree associated with that queue.
- Addresses to insert to that queue.
Fields§
§queue: &'info AccountInfo<'info>
§merkle_tree: &'info AccountInfo<'info>
§elements: Vec<[u8; 32]>
Implementations§
source§impl<'info> QueueBundle<'info>
impl<'info> QueueBundle<'info>
pub fn new( queue: &'info AccountInfo<'info>, merkle_tree: &'info AccountInfo<'info>, ) -> Self
Auto Trait Implementations§
impl<'info> Freeze for QueueBundle<'info>
impl<'info> !RefUnwindSafe for QueueBundle<'info>
impl<'info> !Send for QueueBundle<'info>
impl<'info> !Sync for QueueBundle<'info>
impl<'info> Unpin for QueueBundle<'info>
impl<'info> !UnwindSafe for QueueBundle<'info>
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> 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