#[repr(C)]pub struct Enhancer {
pub authority: Pubkey,
pub asset: Pubkey,
pub slot: u64,
pub hash: [u8; 32],
}Expand description
Proof accounts track a miner’s current hash, claimable rewards, and lifetime stats. Every miner is allowed one proof account which is required by the program to mine or claim rewards.
Fields§
The reprocess authority.
asset: PubkeyThe asset being enhanced.
slot: u64The slot the reprocessor was created at.
hash: [u8; 32]Sysvar hashes
Implementations§
Trait Implementations§
Source§impl AccountDeserialize for Enhancer
impl AccountDeserialize for Enhancer
fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>
fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>
Source§impl Discriminator for Enhancer
impl Discriminator for Enhancer
fn discriminator() -> u8
impl Copy for Enhancer
impl Pod for Enhancer
impl StructuralPartialEq for Enhancer
Auto Trait Implementations§
impl Freeze for Enhancer
impl RefUnwindSafe for Enhancer
impl Send for Enhancer
impl Sync for Enhancer
impl Unpin for Enhancer
impl UnwindSafe for Enhancer
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.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