pub struct RevokeProgrammableConfigV1Builder { /* private fields */ }Expand description
Instruction builder for RevokeProgrammableConfigV1.
§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 RevokeProgrammableConfigV1Builder
impl RevokeProgrammableConfigV1Builder
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
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 RevokeProgrammableConfigV1Builder
impl Default for RevokeProgrammableConfigV1Builder
Source§fn default() -> RevokeProgrammableConfigV1Builder
fn default() -> RevokeProgrammableConfigV1Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RevokeProgrammableConfigV1Builder
impl RefUnwindSafe for RevokeProgrammableConfigV1Builder
impl Send for RevokeProgrammableConfigV1Builder
impl Sync for RevokeProgrammableConfigV1Builder
impl Unpin for RevokeProgrammableConfigV1Builder
impl UnsafeUnpin for RevokeProgrammableConfigV1Builder
impl UnwindSafe for RevokeProgrammableConfigV1Builder
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