pub struct AddIdentityBuilder { /* private fields */ }Expand description
Instruction builder for AddIdentity.
§Accounts:
[]mint[]token_account[writable]policy[writable, signer]payer[writable, signer]owner[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl AddIdentityBuilder
impl AddIdentityBuilder
pub fn new() -> Self
Sourcepub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
The token extensions mint account linked to the policy
Sourcepub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
pub fn token_account(&mut self, token_account: Pubkey) -> &mut Self
The authority over the policy based on token ownership of the mint
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']
The system program
pub fn identity(&mut self, identity: Pubkey) -> &mut Self
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional 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 Clone for AddIdentityBuilder
impl Clone for AddIdentityBuilder
Source§fn clone(&self) -> AddIdentityBuilder
fn clone(&self) -> AddIdentityBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddIdentityBuilder
impl Debug for AddIdentityBuilder
Source§impl Default for AddIdentityBuilder
impl Default for AddIdentityBuilder
Source§fn default() -> AddIdentityBuilder
fn default() -> AddIdentityBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddIdentityBuilder
impl RefUnwindSafe for AddIdentityBuilder
impl Send for AddIdentityBuilder
impl Sync for AddIdentityBuilder
impl Unpin for AddIdentityBuilder
impl UnwindSafe for AddIdentityBuilder
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