pub struct AddSubAccountBuilder { /* private fields */ }Expand description
Instruction builder for AddSubAccount.
§Accounts:
[writable]main[writable]lst_controller[]admin_permissions[writable, signer]admin[]drift[writable]state[writable]user_stats[writable]user_account[optional]rent (default toSysvarRent111111111111111111111111111111111)[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl AddSubAccountBuilder
impl AddSubAccountBuilder
pub fn new() -> Self
pub fn main(&mut self, main: Pubkey) -> &mut Self
pub fn lst_controller(&mut self, lst_controller: Pubkey) -> &mut Self
pub fn admin_permissions(&mut self, admin_permissions: Pubkey) -> &mut Self
pub fn admin(&mut self, admin: Pubkey) -> &mut Self
pub fn drift(&mut self, drift: Pubkey) -> &mut Self
pub fn state(&mut self, state: Pubkey) -> &mut Self
pub fn user_stats(&mut self, user_stats: Pubkey) -> &mut Self
pub fn user_account(&mut self, user_account: Pubkey) -> &mut Self
Sourcepub fn rent(&mut self, rent: Pubkey) -> &mut Self
pub fn rent(&mut self, rent: Pubkey) -> &mut Self
[optional account, default to 'SysvarRent111111111111111111111111111111111']
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 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 AddSubAccountBuilder
impl Clone for AddSubAccountBuilder
Source§fn clone(&self) -> AddSubAccountBuilder
fn clone(&self) -> AddSubAccountBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddSubAccountBuilder
impl Debug for AddSubAccountBuilder
Source§impl Default for AddSubAccountBuilder
impl Default for AddSubAccountBuilder
Source§fn default() -> AddSubAccountBuilder
fn default() -> AddSubAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddSubAccountBuilder
impl RefUnwindSafe for AddSubAccountBuilder
impl Send for AddSubAccountBuilder
impl Sync for AddSubAccountBuilder
impl Unpin for AddSubAccountBuilder
impl UnsafeUnpin for AddSubAccountBuilder
impl UnwindSafe for AddSubAccountBuilder
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