pub struct Accounts<'a, T> {
pub mint: &'a T,
pub name_account: &'a T,
pub central_state: &'a T,
pub spl_token_program: &'a T,
pub system_program: &'a T,
pub rent_account: &'a T,
pub fee_payer: &'a T,
}Fields§
§mint: &'a TThe mint of the NFT
name_account: &'a TThe domain name account
central_state: &'a TThe central state account
spl_token_program: &'a TThe SPL token program account
system_program: &'a TThe system program account
rent_account: &'a TRent sysvar account
fee_payer: &'a TFee payer 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> Freeze for Accounts<'a, T>
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