Struct mpl_core::instructions::CollectBuilder
source · pub struct CollectBuilder { /* private fields */ }Expand description
Instruction builder for Collect.
§Accounts:
[writable, optional]recipient (default to8AT6o8Qk5T9QnZvPThMrF9bcCQLTGkyGvVZZzHgCw11v)
Implementations§
source§impl CollectBuilder
impl CollectBuilder
pub fn new() -> Self
sourcepub fn recipient(&mut self, recipient: Pubkey) -> &mut Self
pub fn recipient(&mut self, recipient: Pubkey) -> &mut Self
[optional account, default to '8AT6o8Qk5T9QnZvPThMrF9bcCQLTGkyGvVZZzHgCw11v']
The address of the recipient
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 Freeze for CollectBuilder
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