pub struct CreateTreeConfigV2Builder { /* private fields */ }Expand description
Instruction builder.
Implementations§
Source§impl CreateTreeConfigV2Builder
impl CreateTreeConfigV2Builder
pub fn new() -> Self
pub fn tree_config(&mut self, tree_config: Pubkey) -> &mut Self
pub fn merkle_tree(&mut self, merkle_tree: Pubkey) -> &mut Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
Sourcepub fn tree_creator(&mut self, tree_creator: Option<Pubkey>) -> &mut Self
pub fn tree_creator(&mut self, tree_creator: Option<Pubkey>) -> &mut Self
[optional account]
Optional tree creator, defaults to payer
Sourcepub fn log_wrapper(&mut self, log_wrapper: Pubkey) -> &mut Self
pub fn log_wrapper(&mut self, log_wrapper: Pubkey) -> &mut Self
[optional account, default to 'mnoopTCrg4p8ry25e4bcWA9XZjbNjMTfgYVGGEdRsf3']
Sourcepub fn compression_program(&mut self, compression_program: Pubkey) -> &mut Self
pub fn compression_program(&mut self, compression_program: Pubkey) -> &mut Self
[optional account, default to 'mcmt6YrQEMKw8Mw43FmpRLmf7BqRnFMKmAcbxE3xkAW']
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
pub fn max_depth(&mut self, max_depth: u32) -> &mut Self
pub fn max_buffer_size(&mut self, max_buffer_size: u32) -> &mut Self
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Default for CreateTreeConfigV2Builder
impl Default for CreateTreeConfigV2Builder
Source§fn default() -> CreateTreeConfigV2Builder
fn default() -> CreateTreeConfigV2Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateTreeConfigV2Builder
impl RefUnwindSafe for CreateTreeConfigV2Builder
impl Send for CreateTreeConfigV2Builder
impl Sync for CreateTreeConfigV2Builder
impl Unpin for CreateTreeConfigV2Builder
impl UnsafeUnpin for CreateTreeConfigV2Builder
impl UnwindSafe for CreateTreeConfigV2Builder
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