pub struct CreateTreeConfigBuilder { /* private fields */ }Expand description
Instruction builder.
Implementations§
Source§impl CreateTreeConfigBuilder
impl CreateTreeConfigBuilder
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
pub fn tree_creator(&mut self, tree_creator: Pubkey) -> &mut Self
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 'noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV']
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 'cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK']
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 CreateTreeConfigBuilder
impl Default for CreateTreeConfigBuilder
Source§fn default() -> CreateTreeConfigBuilder
fn default() -> CreateTreeConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateTreeConfigBuilder
impl RefUnwindSafe for CreateTreeConfigBuilder
impl Send for CreateTreeConfigBuilder
impl Sync for CreateTreeConfigBuilder
impl Unpin for CreateTreeConfigBuilder
impl UnsafeUnpin for CreateTreeConfigBuilder
impl UnwindSafe for CreateTreeConfigBuilder
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