pub struct ApproveAccounts<'info> {Show 13 fields
pub wns_program: AccountInfo<'info>,
pub payer: AccountInfo<'info>,
pub authority: AccountInfo<'info>,
pub mint: AccountInfo<'info>,
pub approve_account: AccountInfo<'info>,
pub payment_mint: Option<AccountInfo<'info>>,
pub distribution_token_account: Option<AccountInfo<'info>>,
pub authority_token_account: Option<AccountInfo<'info>>,
pub distribution_account: AccountInfo<'info>,
pub system_program: AccountInfo<'info>,
pub distribution_program: AccountInfo<'info>,
pub token_program: AccountInfo<'info>,
pub payment_token_program: Option<AccountInfo<'info>>,
}Expand description
Accounts for the wns_approve function.
Fields§
§wns_program: AccountInfo<'info>§payer: AccountInfo<'info>§mint: AccountInfo<'info>§approve_account: AccountInfo<'info>§payment_mint: Option<AccountInfo<'info>>§distribution_token_account: Option<AccountInfo<'info>>§distribution_account: AccountInfo<'info>§system_program: AccountInfo<'info>§distribution_program: AccountInfo<'info>§token_program: AccountInfo<'info>§payment_token_program: Option<AccountInfo<'info>>Implementations§
Source§impl<'info> ApproveAccounts<'info>
impl<'info> ApproveAccounts<'info>
pub fn to_account_infos(self) -> Vec<AccountInfo<'info>>
pub fn to_account_metas(&self) -> Vec<AccountMeta>
Auto Trait Implementations§
impl<'info> Freeze for ApproveAccounts<'info>
impl<'info> !RefUnwindSafe for ApproveAccounts<'info>
impl<'info> !Send for ApproveAccounts<'info>
impl<'info> !Sync for ApproveAccounts<'info>
impl<'info> Unpin for ApproveAccounts<'info>
impl<'info> !UnwindSafe for ApproveAccounts<'info>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more