pub struct OpenPositionWithMetadataBuilder { /* private fields */ }
Expand description
Instruction builder for OpenPositionWithMetadata
.
§Accounts:
[writable, signer]
funder[]
owner[writable]
position[writable, signer]
position_mint[writable]
position_metadata_account[writable]
position_token_account[]
whirlpool[optional]
token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
)[optional]
system_program (default to11111111111111111111111111111111
)[optional]
rent (default toSysvarRent111111111111111111111111111111111
)[]
associated_token_program[]
metadata_program[]
metadata_update_auth
Implementations§
§impl OpenPositionWithMetadataBuilder
impl OpenPositionWithMetadataBuilder
pub fn new() -> OpenPositionWithMetadataBuilder
pub fn funder(&mut self, funder: Pubkey) -> &mut OpenPositionWithMetadataBuilder
pub fn owner(&mut self, owner: Pubkey) -> &mut OpenPositionWithMetadataBuilder
pub fn position( &mut self, position: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
pub fn position_mint( &mut self, position_mint: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
pub fn position_metadata_account(
&mut self,
position_metadata_account: Pubkey,
) -> &mut OpenPositionWithMetadataBuilder
pub fn position_metadata_account( &mut self, position_metadata_account: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
https://github.com/metaplex-foundation/mpl-token-metadata/blob/master/programs/token-metadata/program/src/utils/metadata.rs#L78
pub fn position_token_account( &mut self, position_token_account: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
pub fn whirlpool( &mut self, whirlpool: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
pub fn token_program(
&mut self,
token_program: Pubkey,
) -> &mut OpenPositionWithMetadataBuilder
pub fn token_program( &mut self, token_program: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
pub fn system_program(
&mut self,
system_program: Pubkey,
) -> &mut OpenPositionWithMetadataBuilder
pub fn system_program( &mut self, system_program: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
[optional account, default to '11111111111111111111111111111111']
pub fn rent(&mut self, rent: Pubkey) -> &mut OpenPositionWithMetadataBuilder
pub fn rent(&mut self, rent: Pubkey) -> &mut OpenPositionWithMetadataBuilder
[optional account, default to 'SysvarRent111111111111111111111111111111111']
pub fn associated_token_program( &mut self, associated_token_program: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
pub fn metadata_program( &mut self, metadata_program: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
pub fn metadata_update_auth( &mut self, metadata_update_auth: Pubkey, ) -> &mut OpenPositionWithMetadataBuilder
pub fn position_bump( &mut self, position_bump: u8, ) -> &mut OpenPositionWithMetadataBuilder
pub fn metadata_bump( &mut self, metadata_bump: u8, ) -> &mut OpenPositionWithMetadataBuilder
pub fn tick_lower_index( &mut self, tick_lower_index: i32, ) -> &mut OpenPositionWithMetadataBuilder
pub fn tick_upper_index( &mut self, tick_upper_index: i32, ) -> &mut OpenPositionWithMetadataBuilder
pub fn add_remaining_account(
&mut self,
account: AccountMeta,
) -> &mut OpenPositionWithMetadataBuilder
pub fn add_remaining_account( &mut self, account: AccountMeta, ) -> &mut OpenPositionWithMetadataBuilder
Add an additional account to the instruction.
pub fn add_remaining_accounts(
&mut self,
accounts: &[AccountMeta],
) -> &mut OpenPositionWithMetadataBuilder
pub fn add_remaining_accounts( &mut self, accounts: &[AccountMeta], ) -> &mut OpenPositionWithMetadataBuilder
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
§impl Clone for OpenPositionWithMetadataBuilder
impl Clone for OpenPositionWithMetadataBuilder
§fn clone(&self) -> OpenPositionWithMetadataBuilder
fn clone(&self) -> OpenPositionWithMetadataBuilder
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 OpenPositionWithMetadataBuilder
impl Debug for OpenPositionWithMetadataBuilder
§impl Default for OpenPositionWithMetadataBuilder
impl Default for OpenPositionWithMetadataBuilder
§fn default() -> OpenPositionWithMetadataBuilder
fn default() -> OpenPositionWithMetadataBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenPositionWithMetadataBuilder
impl RefUnwindSafe for OpenPositionWithMetadataBuilder
impl Send for OpenPositionWithMetadataBuilder
impl Sync for OpenPositionWithMetadataBuilder
impl Unpin for OpenPositionWithMetadataBuilder
impl UnwindSafe for OpenPositionWithMetadataBuilder
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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