pub struct Community {
pub authority: Pubkey,
pub cases: u64,
pub confirmation_threshold: u8,
pub stake_unlock_epochs: u64,
pub stake_mint: Pubkey,
pub token_signer: Pubkey,
pub token_signer_bump: u8,
pub token_account: Pubkey,
pub validator_stake: u64,
pub tracer_stake: u64,
pub full_stake: u64,
pub authority_stake: u64,
}
Fields
Community authority wallet
cases: u64
Community case counter
confirmation_threshold: u8
Number of confirmations needed for address to be considered confirmed
stake_unlock_epochs: u64
Number of epochs reporter must wait to retrieve their stake
stake_mint: Pubkey
Stake token mint account
token_signer: Pubkey
Token signer PDA
token_signer_bump: u8
Seed bump for token signer PDA
token_account: Pubkey
Stake holding token account
validator_stake: u64
Amount of stake required from a reporter of validator type
tracer_stake: u64
Amount of stake required from a reporter of tracer type
full_stake: u64
Amount of stake required from a reporter of full type
Amount of stake required from a reporter of authority type
Trait Implementations
sourceimpl AccountDeserialize for Community
impl AccountDeserialize for Community
sourcefn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a Mint
account into a token
Account
. Read more
sourceimpl AccountSerialize for Community
impl AccountSerialize for Community
sourceimpl BorshDeserialize for Community where
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for Community where
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for Community where
Pubkey: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
u64: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u8: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for Community where
Pubkey: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
u64: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
u8: BorshSerialize,
Pubkey: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
sourceimpl Discriminator for Community
impl Discriminator for Community
fn discriminator() -> [u8; 8]
Auto Trait Implementations
impl RefUnwindSafe for Community
impl Send for Community
impl Sync for Community
impl Unpin for Community
impl UnwindSafe for Community
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more