pub struct CreateOperatorBuilder { /* private fields */ }Expand description
Instruction builder for CreateOperator.
§Accounts:
[writable, signer]payer[writable]operator[signer]authority[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl CreateOperatorBuilder
impl CreateOperatorBuilder
pub fn new() -> Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn operator(&mut self, operator: 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']
pub fn bump(&mut self, bump: u8) -> &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 CreateOperatorBuilder
impl Clone for CreateOperatorBuilder
Source§fn clone(&self) -> CreateOperatorBuilder
fn clone(&self) -> CreateOperatorBuilder
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 CreateOperatorBuilder
impl Debug for CreateOperatorBuilder
Source§impl Default for CreateOperatorBuilder
impl Default for CreateOperatorBuilder
Source§fn default() -> CreateOperatorBuilder
fn default() -> CreateOperatorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateOperatorBuilder
impl RefUnwindSafe for CreateOperatorBuilder
impl Send for CreateOperatorBuilder
impl Sync for CreateOperatorBuilder
impl Unpin for CreateOperatorBuilder
impl UnwindSafe for CreateOperatorBuilder
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