Skip to main content

Accounts

Struct Accounts 

Source
pub struct Accounts<'a, T> {
Show 17 fields pub mint: &'a T, pub nft_destination: &'a T, pub name_account: &'a T, pub nft_record: &'a T, pub name_owner: &'a T, pub metadata_account: &'a T, pub edition_account: &'a T, pub collection_metadata: &'a T, pub collection_mint: &'a T, pub central_state: &'a T, pub fee_payer: &'a T, pub spl_token_program: &'a T, pub metadata_program: &'a T, pub system_program: &'a T, pub spl_name_service_program: &'a T, pub rent_account: &'a T, pub metadata_signer: &'a T,
}

Fields§

§mint: &'a T

The mint of the NFT

§nft_destination: &'a T

The NFT token destination

§name_account: &'a T

The domain name account

§nft_record: &'a T

The NFT record account

§name_owner: &'a T

The domain name owner

§metadata_account: &'a T

The metadata account

§edition_account: &'a T

Master edition account

§collection_metadata: &'a T

Collection

§collection_mint: &'a T

Mint of the collection

§central_state: &'a T

The central state account

§fee_payer: &'a T

The fee payer account

§spl_token_program: &'a T

The SPL token program account

§metadata_program: &'a T

The metadata program account

§system_program: &'a T

The system program account

§spl_name_service_program: &'a T

The SPL name service program account

§rent_account: &'a T

Rent sysvar account

§metadata_signer: &'a T

The metadata signer

Implementations§

Source§

impl<'a, 'b: 'a> Accounts<'a, AccountInfo<'b>>

Source

pub fn parse( accounts: &'a [AccountInfo<'b>], program_id: &Pubkey, ) -> Result<Self, ProgramError>

Trait Implementations§

Source§

impl<'a> InstructionsAccount for Accounts<'a, Pubkey>

Source§

fn get_accounts_vec(&self) -> Vec<AccountMeta>

Source§

fn get_instruction<P>( &self, program_id: Pubkey, instruction_id: u8, params: P, ) -> Instruction

Source§

fn get_instruction_cast<P>( &self, program_id: Pubkey, instruction_id: u8, params: P, ) -> Instruction
where P: NoUninit,

Source§

fn get_instruction_wrapped_pod<'a, P>( &self, program_id: Pubkey, instruction_id: u8, params: P, ) -> Instruction
where 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> UnsafeUnpin for Accounts<'a, T>

§

impl<'a, T> UnwindSafe for Accounts<'a, T>
where T: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V