pub struct UpdatePrimarySaleHappenedViaTokenBuilder { /* private fields */ }
Expand description
Instruction builder for UpdatePrimarySaleHappenedViaToken
.
§Accounts:
[writable]
metadata[signer]
owner[]
token
Implementations§
source§impl UpdatePrimarySaleHappenedViaTokenBuilder
impl UpdatePrimarySaleHappenedViaTokenBuilder
pub fn new() -> Self
sourcepub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
pub fn metadata(&mut self, metadata: Pubkey) -> &mut Self
Metadata key (pda of [‘metadata’, program id, mint id])
sourcepub fn token(&mut self, token: Pubkey) -> &mut Self
pub fn token(&mut self, token: Pubkey) -> &mut Self
Account containing tokens from the metadata’s mint
sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional 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 Default for UpdatePrimarySaleHappenedViaTokenBuilder
impl Default for UpdatePrimarySaleHappenedViaTokenBuilder
source§fn default() -> UpdatePrimarySaleHappenedViaTokenBuilder
fn default() -> UpdatePrimarySaleHappenedViaTokenBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UpdatePrimarySaleHappenedViaTokenBuilder
impl Send for UpdatePrimarySaleHappenedViaTokenBuilder
impl Sync for UpdatePrimarySaleHappenedViaTokenBuilder
impl Unpin for UpdatePrimarySaleHappenedViaTokenBuilder
impl UnwindSafe for UpdatePrimarySaleHappenedViaTokenBuilder
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