pub struct CreateDriftUserStatsAccountBuilder { /* private fields */ }Expand description
Instruction builder for CreateDriftUserStatsAccount.
§Accounts:
[writable]main[writable]controller[]admin_permissions[writable, signer]admin[]drift[writable]state[writable]user_stats[optional]rent (default toSysvarRent111111111111111111111111111111111)[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl CreateDriftUserStatsAccountBuilder
impl CreateDriftUserStatsAccountBuilder
pub fn new() -> Self
pub fn main(&mut self, main: Pubkey) -> &mut Self
pub fn controller(&mut self, 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
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 CreateDriftUserStatsAccountBuilder
impl Clone for CreateDriftUserStatsAccountBuilder
Source§fn clone(&self) -> CreateDriftUserStatsAccountBuilder
fn clone(&self) -> CreateDriftUserStatsAccountBuilder
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 Default for CreateDriftUserStatsAccountBuilder
impl Default for CreateDriftUserStatsAccountBuilder
Source§fn default() -> CreateDriftUserStatsAccountBuilder
fn default() -> CreateDriftUserStatsAccountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateDriftUserStatsAccountBuilder
impl RefUnwindSafe for CreateDriftUserStatsAccountBuilder
impl Send for CreateDriftUserStatsAccountBuilder
impl Sync for CreateDriftUserStatsAccountBuilder
impl Unpin for CreateDriftUserStatsAccountBuilder
impl UnsafeUnpin for CreateDriftUserStatsAccountBuilder
impl UnwindSafe for CreateDriftUserStatsAccountBuilder
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