Enum human_program::Instruction
source · #[repr(u8)]#[non_exhaustive]pub enum Instruction {
Show 15 variants
CreateWallets,
Init(InitInstruction),
Emit(EmitInstruction),
Buy(BuyInstruction),
CreateDrop(CreateDropInstruction),
Withdraw,
Vest,
MigrateState,
SetAdmin(SetAdminInstruction),
DepositCommission,
RegisterPost(RegisterPostInstruction),
Repost(RepostInstruction),
RedeemRepost,
CreateRound(CreateRoundInstruction),
ClaimRoundVesting,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateWallets
Init(InitInstruction)
Emit(EmitInstruction)
Buy(BuyInstruction)
CreateDrop(CreateDropInstruction)
Withdraw
Vest
MigrateState
SetAdmin(SetAdminInstruction)
DepositCommission
RegisterPost(RegisterPostInstruction)
Repost(RepostInstruction)
RedeemRepost
CreateRound(CreateRoundInstruction)
ClaimRoundVesting
Trait Implementations§
source§impl BorshDeserialize for Instructionwhere
InitInstruction: BorshDeserialize,
EmitInstruction: BorshDeserialize,
BuyInstruction: BorshDeserialize,
CreateDropInstruction: BorshDeserialize,
SetAdminInstruction: BorshDeserialize,
RegisterPostInstruction: BorshDeserialize,
RepostInstruction: BorshDeserialize,
CreateRoundInstruction: BorshDeserialize,
impl BorshDeserialize for Instructionwhere InitInstruction: BorshDeserialize, EmitInstruction: BorshDeserialize, BuyInstruction: BorshDeserialize, CreateDropInstruction: BorshDeserialize, SetAdminInstruction: BorshDeserialize, RegisterPostInstruction: BorshDeserialize, RepostInstruction: BorshDeserialize, CreateRoundInstruction: BorshDeserialize,
source§impl BorshSerialize for Instructionwhere
InitInstruction: BorshSerialize,
EmitInstruction: BorshSerialize,
BuyInstruction: BorshSerialize,
CreateDropInstruction: BorshSerialize,
SetAdminInstruction: BorshSerialize,
RegisterPostInstruction: BorshSerialize,
RepostInstruction: BorshSerialize,
CreateRoundInstruction: BorshSerialize,
impl BorshSerialize for Instructionwhere InitInstruction: BorshSerialize, EmitInstruction: BorshSerialize, BuyInstruction: BorshSerialize, CreateDropInstruction: BorshSerialize, SetAdminInstruction: BorshSerialize, RegisterPostInstruction: BorshSerialize, RepostInstruction: BorshSerialize, CreateRoundInstruction: BorshSerialize,
Auto Trait Implementations§
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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