Struct access_protocol::instruction::crank::Accounts   
source · pub struct Accounts<'a, T> {
    pub stake_pool: &'a T,
    pub central_state: &'a T,
}Expand description
The required accounts for the crank instruction
Fields§
§stake_pool: &'a TThe stake pool account
central_state: &'a TThe central state account
Implementations§
source§impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>>
 
impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>>
pub fn parse( accounts: &'a [AccountInfo<'b>], program_id: &Pubkey ) -> Result<Self, ProgramError>
Trait Implementations§
source§impl<'a> InstructionsAccount for Accounts<'a, Pubkey>
 
impl<'a> InstructionsAccount for Accounts<'a, Pubkey>
fn get_accounts_vec(&self) -> Vec<AccountMeta>
fn get_instruction<P>( &self, program_id: Pubkey, instruction_id: u8, params: P ) -> Instruction
fn get_instruction_cast<P>(
    &self,
    program_id: Pubkey,
    instruction_id: u8,
    params: P
) -> Instructionwhere
    P: NoUninit,
fn get_instruction_wrapped_pod<'a, P>(
    &self,
    program_id: Pubkey,
    instruction_id: u8,
    params: P
) -> Instructionwhere
    P: WrappedPod<'a>,
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for Accounts<'a, T>where
    T: RefUnwindSafe,
impl<'a, T> Send for Accounts<'a, T>where
    T: Sync,
impl<'a, T> Sync for Accounts<'a, T>where
    T: Sync,
impl<'a, T> Unpin for Accounts<'a, T>
impl<'a, T> UnwindSafe for Accounts<'a, T>where
    T: RefUnwindSafe,
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