pub struct SetConfigAdminBuilder { /* private fields */ }Expand description
Instruction builder for SetConfigAdmin.
§Accounts:
[writable]config[signer]old_admin[]new_admin
Implementations§
Source§impl SetConfigAdminBuilder
impl SetConfigAdminBuilder
pub fn new() -> Self
pub fn config(&mut self, config: Pubkey) -> &mut Self
pub fn old_admin(&mut self, old_admin: Pubkey) -> &mut Self
pub fn new_admin(&mut self, new_admin: 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 SetConfigAdminBuilder
impl Clone for SetConfigAdminBuilder
Source§fn clone(&self) -> SetConfigAdminBuilder
fn clone(&self) -> SetConfigAdminBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetConfigAdminBuilder
impl Debug for SetConfigAdminBuilder
Source§impl Default for SetConfigAdminBuilder
impl Default for SetConfigAdminBuilder
Source§fn default() -> SetConfigAdminBuilder
fn default() -> SetConfigAdminBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetConfigAdminBuilder
impl RefUnwindSafe for SetConfigAdminBuilder
impl Send for SetConfigAdminBuilder
impl Sync for SetConfigAdminBuilder
impl Unpin for SetConfigAdminBuilder
impl UnsafeUnpin for SetConfigAdminBuilder
impl UnwindSafe for SetConfigAdminBuilder
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