Struct ResetPositionRangeBuilder
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§
§impl ResetPositionRangeBuilder
impl ResetPositionRangeBuilder
pub fn new() -> ResetPositionRangeBuilder
pub fn funder(&mut self, funder: Pubkey) -> &mut ResetPositionRangeBuilder
pub fn whirlpool(&mut self, whirlpool: Pubkey) -> &mut ResetPositionRangeBuilder
pub fn position(&mut self, position: Pubkey) -> &mut ResetPositionRangeBuilder
pub fn position_token_account( &mut self, position_token_account: Pubkey, ) -> &mut ResetPositionRangeBuilder
pub fn system_program(
&mut self,
system_program: Pubkey,
) -> &mut ResetPositionRangeBuilder
pub fn system_program( &mut self, system_program: Pubkey, ) -> &mut ResetPositionRangeBuilder
[optional account, default to '11111111111111111111111111111111']
pub fn new_tick_lower_index( &mut self, new_tick_lower_index: i32, ) -> &mut ResetPositionRangeBuilder
pub fn new_tick_upper_index( &mut self, new_tick_upper_index: i32, ) -> &mut ResetPositionRangeBuilder
pub fn add_remaining_account(
&mut self,
account: AccountMeta,
) -> &mut ResetPositionRangeBuilder
pub fn add_remaining_account( &mut self, account: AccountMeta, ) -> &mut ResetPositionRangeBuilder
Add an additional account to the instruction.
pub fn add_remaining_accounts(
&mut self,
accounts: &[AccountMeta],
) -> &mut ResetPositionRangeBuilder
pub fn add_remaining_accounts( &mut self, accounts: &[AccountMeta], ) -> &mut ResetPositionRangeBuilder
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
§impl Clone for ResetPositionRangeBuilder
impl Clone for ResetPositionRangeBuilder
§fn clone(&self) -> ResetPositionRangeBuilder
fn clone(&self) -> ResetPositionRangeBuilder
Returns a copy 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 more§impl Debug for ResetPositionRangeBuilder
impl Debug for ResetPositionRangeBuilder
§impl Default for ResetPositionRangeBuilder
impl Default for ResetPositionRangeBuilder
§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 UnwindSafe for ResetPositionRangeBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more