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