pub struct UpdateV1CpiBuilder<'a, 'b> { /* private fields */ }
Expand description
update_v1
CPI instruction builder.
Implementations§
source§impl<'a, 'b> UpdateV1CpiBuilder<'a, 'b>
impl<'a, 'b> UpdateV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
Update authority or delegate
sourcepub fn delegate_record(
&mut self,
delegate_record: Option<&'b AccountInfo<'a>>
) -> &mut Self
pub fn delegate_record( &mut self, delegate_record: Option<&'b AccountInfo<'a>> ) -> &mut Self
[optional account]
Delegate record PDA
sourcepub fn token(&mut self, token: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn token(&mut self, token: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Token account
sourcepub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
Mint account
sourcepub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
Metadata account
sourcepub fn edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn edition(&mut self, edition: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Edition account
sourcepub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
pub fn payer(&mut self, payer: &'b AccountInfo<'a>) -> &mut Self
Payer
sourcepub fn system_program(
&mut self,
system_program: &'b AccountInfo<'a>
) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a> ) -> &mut Self
System program
sourcepub fn sysvar_instructions(
&mut self,
sysvar_instructions: &'b AccountInfo<'a>
) -> &mut Self
pub fn sysvar_instructions( &mut self, sysvar_instructions: &'b AccountInfo<'a> ) -> &mut Self
Instructions sysvar account
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules account
[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 collection(&mut self, collection: CollectionToggle) -> &mut Self
pub fn collection(&mut self, collection: CollectionToggle) -> &mut Self
[optional argument, defaults to 'CollectionToggle::None']
sourcepub fn collection_details(
&mut self,
collection_details: CollectionDetailsToggle
) -> &mut Self
pub fn collection_details( &mut self, collection_details: CollectionDetailsToggle ) -> &mut Self
[optional argument, defaults to 'CollectionDetailsToggle::None']
sourcepub fn uses(&mut self, uses: UsesToggle) -> &mut Self
pub fn uses(&mut self, uses: UsesToggle) -> &mut Self
[optional argument, defaults to 'UsesToggle::None']
sourcepub fn rule_set(&mut self, rule_set: RuleSetToggle) -> &mut Self
pub fn rule_set(&mut self, rule_set: RuleSetToggle) -> &mut Self
[optional argument, defaults to 'RuleSetToggle::None']
[optional argument]
pub fn add_remaining_account( &mut self, account: InstructionAccountInfo<'a, 'b> ) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[InstructionAccountInfo<'a, 'b>] ) -> &mut Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for UpdateV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for UpdateV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for UpdateV1CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for UpdateV1CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for UpdateV1CpiBuilder<'a, 'b>
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