pub struct UpdateCollectionInfoV1CpiBuilder<'a, 'b> { /* private fields */ }Expand description
Instruction builder for UpdateCollectionInfoV1 via CPI.
§Accounts:
[writable]collection[signer]bubblegum_signer
Implementations§
Source§impl<'a, 'b> UpdateCollectionInfoV1CpiBuilder<'a, 'b>
impl<'a, 'b> UpdateCollectionInfoV1CpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
Sourcepub fn collection(&mut self, collection: &'b AccountInfo<'a>) -> &mut Self
pub fn collection(&mut self, collection: &'b AccountInfo<'a>) -> &mut Self
The address of the asset
Sourcepub fn bubblegum_signer(
&mut self,
bubblegum_signer: &'b AccountInfo<'a>,
) -> &mut Self
pub fn bubblegum_signer( &mut self, bubblegum_signer: &'b AccountInfo<'a>, ) -> &mut Self
Bubblegum PDA signer
pub fn update_type(&mut self, update_type: UpdateType) -> &mut Self
pub fn amount(&mut self, amount: u32) -> &mut Self
Sourcepub fn add_remaining_account(
&mut self,
account: &'b AccountInfo<'a>,
is_writable: bool,
is_signer: bool,
) -> &mut Self
pub fn add_remaining_account( &mut self, account: &'b AccountInfo<'a>, is_writable: bool, is_signer: bool, ) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(
&mut self,
accounts: &[(&'b AccountInfo<'a>, bool, bool)],
) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> &mut Self
Add additional accounts to the instruction.
Each account is represented by a tuple of the AccountInfo, a bool indicating whether the account is writable or not,
and a bool indicating whether the account is a signer or not.
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> Freeze for UpdateCollectionInfoV1CpiBuilder<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for UpdateCollectionInfoV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Send for UpdateCollectionInfoV1CpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for UpdateCollectionInfoV1CpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for UpdateCollectionInfoV1CpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for UpdateCollectionInfoV1CpiBuilder<'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