Struct mpl_token_metadata::instructions::CollectBuilder
source · pub struct CollectBuilder { /* private fields */ }
Expand description
Implementations§
source§impl CollectBuilder
impl CollectBuilder
pub fn new() -> Self
Authority to collect fees
sourcepub fn recipient(&mut self, recipient: Pubkey) -> &mut Self
pub fn recipient(&mut self, recipient: Pubkey) -> &mut Self
The account to transfer collected fees to
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 CollectBuilder
impl Default for CollectBuilder
source§fn default() -> CollectBuilder
fn default() -> CollectBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CollectBuilder
impl Send for CollectBuilder
impl Sync for CollectBuilder
impl Unpin for CollectBuilder
impl UnwindSafe for CollectBuilder
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