pub struct DelegateDataV1Builder { /* private fields */ }
Expand description
Instruction builder for DelegateDataV1
.
Accounts:
[writable, optional]
delegate_record[]
delegate[writable]
metadata[optional]
master_edition[writable, optional]
token_record[]
mint[writable, optional]
token[signer]
authority[writable, signer]
payer[optional]
system_program (default to11111111111111111111111111111111
)[optional]
sysvar_instructions (default toSysvar1nstructions1111111111111111111111111
)[optional]
spl_token_program[optional]
authorization_rules_program[optional]
authorization_rules
Implementations§
source§impl DelegateDataV1Builder
impl DelegateDataV1Builder
pub fn new() -> Self
sourcepub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
pub fn delegate_record(&mut self, delegate_record: Option<Pubkey>) -> &mut Self
[optional account]
Delegate record account
sourcepub fn master_edition(&mut self, master_edition: Option<Pubkey>) -> &mut Self
pub fn master_edition(&mut self, master_edition: Option<Pubkey>) -> &mut Self
[optional account]
Master Edition account
sourcepub fn token_record(&mut self, token_record: Option<Pubkey>) -> &mut Self
pub fn token_record(&mut self, token_record: Option<Pubkey>) -> &mut Self
[optional account]
Token record account
sourcepub fn token(&mut self, token: Option<Pubkey>) -> &mut Self
pub fn token(&mut self, token: Option<Pubkey>) -> &mut Self
[optional account]
Token account of mint
Update authority or token owner
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']
System Program
sourcepub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
Instructions sysvar account
sourcepub fn spl_token_program(
&mut self,
spl_token_program: Option<Pubkey>
) -> &mut Self
pub fn spl_token_program( &mut self, spl_token_program: Option<Pubkey> ) -> &mut Self
[optional account]
SPL Token Program
[optional account]
Token Authorization Rules Program
[optional account]
Token Authorization Rules account
[optional argument]
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 DelegateDataV1Builder
impl Default for DelegateDataV1Builder
source§fn default() -> DelegateDataV1Builder
fn default() -> DelegateDataV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DelegateDataV1Builder
impl Send for DelegateDataV1Builder
impl Sync for DelegateDataV1Builder
impl Unpin for DelegateDataV1Builder
impl UnwindSafe for DelegateDataV1Builder
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