pub struct InitializeWithToken {
pub raffle: Pubkey,
pub authority: Pubkey,
pub registrar: Option<Pubkey>,
pub treasury: Pubkey,
pub mint: Pubkey,
pub payer: Pubkey,
pub system_program: Option<Pubkey>,
pub spl_token_program: Option<Pubkey>,
pub spl_ata_program: Option<Pubkey>,
}Expand description
Accounts.
Fields§
§raffle: PubkeyUninitialized raffle account
Authority of the raffle
registrar: Option<Pubkey>Registrar of the raffle
treasury: PubkeyTreasury token account
mint: PubkeyMint account
payer: PubkeyPayer
system_program: Option<Pubkey>System program
spl_token_program: Option<Pubkey>SPL Token program
spl_ata_program: Option<Pubkey>SPL Associated Token Account program
Implementations§
Source§impl InitializeWithToken
impl InitializeWithToken
pub fn instruction( &self, args: InitializeWithTokenInstructionArgs, ) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: InitializeWithTokenInstructionArgs, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for InitializeWithToken
impl RefUnwindSafe for InitializeWithToken
impl Send for InitializeWithToken
impl Sync for InitializeWithToken
impl Unpin for InitializeWithToken
impl UnwindSafe for InitializeWithToken
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