pub struct UpdateRoleHolderProtocolCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub admin: &'b AccountInfo<'a>,
pub main: &'b AccountInfo<'a>,
pub admin_permissions: &'b AccountInfo<'a>,
pub update_admin_permissions: &'b AccountInfo<'a>,
pub strategy: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub __args: UpdateRoleHolderProtocolInstructionArgs,
}Expand description
update_role_holder_protocol CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>The program to invoke.
admin: &'b AccountInfo<'a>§main: &'b AccountInfo<'a>§admin_permissions: &'b AccountInfo<'a>§update_admin_permissions: &'b AccountInfo<'a>§strategy: &'b AccountInfo<'a>§system_program: &'b AccountInfo<'a>§__args: UpdateRoleHolderProtocolInstructionArgsThe arguments for the instruction.
Implementations§
Source§impl<'a, 'b> UpdateRoleHolderProtocolCpi<'a, 'b>
impl<'a, 'b> UpdateRoleHolderProtocolCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: UpdateRoleHolderProtocolCpiAccounts<'a, 'b>, args: UpdateRoleHolderProtocolInstructionArgs, ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for UpdateRoleHolderProtocolCpi<'a, 'b>
impl<'a, 'b> !Send for UpdateRoleHolderProtocolCpi<'a, 'b>
impl<'a, 'b> !Sync for UpdateRoleHolderProtocolCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for UpdateRoleHolderProtocolCpi<'a, 'b>
impl<'a, 'b> Freeze for UpdateRoleHolderProtocolCpi<'a, 'b>
impl<'a, 'b> Unpin for UpdateRoleHolderProtocolCpi<'a, 'b>
impl<'a, 'b> UnsafeUnpin for UpdateRoleHolderProtocolCpi<'a, 'b>
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