pub struct ResetPositionRangeBuilder { /* private fields */ }Expand description
Instruction builder for ResetPositionRange.
§Accounts:
[writable, signer]funder[signer]position_authority[]whirlpool[writable]position[]position_token_account[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl ResetPositionRangeBuilder
impl ResetPositionRangeBuilder
pub fn new() -> Self
pub fn funder(&mut self, funder: Pubkey) -> &mut Self
pub fn whirlpool(&mut self, whirlpool: Pubkey) -> &mut Self
pub fn position(&mut self, position: Pubkey) -> &mut Self
pub fn position_token_account( &mut self, position_token_account: 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 new_tick_lower_index(&mut self, new_tick_lower_index: i32) -> &mut Self
pub fn new_tick_upper_index(&mut self, new_tick_upper_index: i32) -> &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 ResetPositionRangeBuilder
impl Clone for ResetPositionRangeBuilder
Source§fn clone(&self) -> ResetPositionRangeBuilder
fn clone(&self) -> ResetPositionRangeBuilder
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 ResetPositionRangeBuilder
impl Debug for ResetPositionRangeBuilder
Source§impl Default for ResetPositionRangeBuilder
impl Default for ResetPositionRangeBuilder
Source§fn default() -> ResetPositionRangeBuilder
fn default() -> ResetPositionRangeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResetPositionRangeBuilder
impl RefUnwindSafe for ResetPositionRangeBuilder
impl Send for ResetPositionRangeBuilder
impl Sync for ResetPositionRangeBuilder
impl Unpin for ResetPositionRangeBuilder
impl UnsafeUnpin for ResetPositionRangeBuilder
impl UnwindSafe for ResetPositionRangeBuilder
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