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