pub struct SetBuilder { /* private fields */ }Expand description
Instruction builder for Set.
§Accounts:
[writable, signer]update_authority_account[writable]state_account
Implementations§
Source§impl SetBuilder
impl SetBuilder
pub fn new() -> Self
pub fn state_account(&mut self, state_account: Pubkey) -> &mut Self
pub fn instruction_data( &mut self, instruction_data: StateUpdateInstruction, ) -> &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 additional 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 Clone for SetBuilder
impl Clone for SetBuilder
Source§fn clone(&self) -> SetBuilder
fn clone(&self) -> SetBuilder
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 SetBuilder
impl Debug for SetBuilder
Source§impl Default for SetBuilder
impl Default for SetBuilder
Source§fn default() -> SetBuilder
fn default() -> SetBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetBuilder
impl RefUnwindSafe for SetBuilder
impl Send for SetBuilder
impl Sync for SetBuilder
impl Unpin for SetBuilder
impl UnwindSafe for SetBuilder
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