pub struct UpdateAsCollectionDelegateV2Builder { /* private fields */ }Expand description
Instruction builder for UpdateAsCollectionDelegateV2.
§Accounts:
[signer]authority[optional]delegate_record[optional]token[]mint[writable]metadata[optional]edition[writable, signer]payer[optional]system_program (default to11111111111111111111111111111111)[optional]sysvar_instructions (default toSysvar1nstructions1111111111111111111111111)[optional]authorization_rules_program[optional]authorization_rules
Implementations§
Source§impl UpdateAsCollectionDelegateV2Builder
impl UpdateAsCollectionDelegateV2Builder
pub fn new() -> Self
Update authority or delegate
Sourcepub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
pub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
[optional account]
Delegate record PDA
Sourcepub fn edition(&mut self, edition: Option<Pubkey>) -> &mut Self
pub fn edition(&mut self, edition: Option<Pubkey>) -> &mut Self
[optional account]
Edition account
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
System program
Sourcepub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
Instructions sysvar account
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules account
Sourcepub fn collection(&mut self, collection: CollectionToggle) -> &mut Self
pub fn collection(&mut self, collection: CollectionToggle) -> &mut Self
[optional argument, defaults to 'CollectionToggle::None']
[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 UpdateAsCollectionDelegateV2Builder
impl Default for UpdateAsCollectionDelegateV2Builder
Source§fn default() -> UpdateAsCollectionDelegateV2Builder
fn default() -> UpdateAsCollectionDelegateV2Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateAsCollectionDelegateV2Builder
impl RefUnwindSafe for UpdateAsCollectionDelegateV2Builder
impl Send for UpdateAsCollectionDelegateV2Builder
impl Sync for UpdateAsCollectionDelegateV2Builder
impl Unpin for UpdateAsCollectionDelegateV2Builder
impl UnsafeUnpin for UpdateAsCollectionDelegateV2Builder
impl UnwindSafe for UpdateAsCollectionDelegateV2Builder
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