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