#[repr(C)]pub struct Pool {
pub version: u8,
pub bump_seed: u8,
pub token_program_id: Pubkey,
pub deposit_account: Pubkey,
pub token_pass_mint: Pubkey,
pub token_fail_mint: Pubkey,
pub decider: Pubkey,
pub mint_end_slot: u64,
pub decide_end_slot: u64,
pub decision: Decision,
}Expand description
Program states.
Fields§
§version: u8Initialized state.
bump_seed: u8Nonce used in program address.
token_program_id: PubkeyProgram ID of the tokens
deposit_account: PubkeyAccount to deposit into
token_pass_mint: PubkeyMint information for token Pass
token_fail_mint: PubkeyMint information for token Fail
decider: Pubkeydecider key
mint_end_slot: u64mint end slot
decide_end_slot: u64decide end slot
decision: Decisiondecision status
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Poolwhere
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
Decision: BorshDeserialize,
impl BorshDeserialize for Poolwhere
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
Decision: BorshDeserialize,
Source§impl BorshSerialize for Pool
impl BorshSerialize for Pool
impl StructuralPartialEq for Pool
Auto Trait Implementations§
impl Freeze for Pool
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnwindSafe for Pool
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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