pub struct UpdateMetadataAccountV2Builder { /* private fields */ }Expand description
Instruction builder for UpdateMetadataAccountV2.
§Accounts:
[writable]metadata[signer]update_authority
Implementations§
Source§impl UpdateMetadataAccountV2Builder
impl UpdateMetadataAccountV2Builder
pub fn new() -> Self
Update authority key
[optional argument]
Sourcepub fn primary_sale_happened(
&mut self,
primary_sale_happened: bool,
) -> &mut Self
pub fn primary_sale_happened( &mut self, primary_sale_happened: bool, ) -> &mut Self
[optional argument]
Sourcepub fn is_mutable(&mut self, is_mutable: bool) -> &mut Self
pub fn is_mutable(&mut self, is_mutable: bool) -> &mut Self
[optional argument]
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 UpdateMetadataAccountV2Builder
impl Default for UpdateMetadataAccountV2Builder
Source§fn default() -> UpdateMetadataAccountV2Builder
fn default() -> UpdateMetadataAccountV2Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateMetadataAccountV2Builder
impl RefUnwindSafe for UpdateMetadataAccountV2Builder
impl Send for UpdateMetadataAccountV2Builder
impl Sync for UpdateMetadataAccountV2Builder
impl Unpin for UpdateMetadataAccountV2Builder
impl UnsafeUnpin for UpdateMetadataAccountV2Builder
impl UnwindSafe for UpdateMetadataAccountV2Builder
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