pub struct MinerState {
pub public_key: Vec<u8>,
pub address: String,
pub total_earned: u128,
pub pending_rewards: u128,
pub registered_at: u64,
pub last_active: u64,
pub reputation: u64,
pub jobs_completed: u64,
pub stats: PerformanceStats,
pub capabilities: Vec<u8>,
}Expand description
Miner state in the ledger
Fields§
§public_key: Vec<u8>Quantum-safe public key
address: StringAddress (derived from public key)
total_earned: u128Total rewards earned (in wei)
pending_rewards: u128Pending rewards (claimable)
registered_at: u64Registration block
last_active: u64Last active block
reputation: u64Reputation score (0-100)
jobs_completed: u64Jobs completed
stats: PerformanceStatsPerformance stats
capabilities: Vec<u8>Active capabilities
Trait Implementations§
Source§impl Clone for MinerState
impl Clone for MinerState
Source§fn clone(&self) -> MinerState
fn clone(&self) -> MinerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MinerState
impl Debug for MinerState
Source§impl<'de> Deserialize<'de> for MinerState
impl<'de> Deserialize<'de> for MinerState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MinerState
impl RefUnwindSafe for MinerState
impl Send for MinerState
impl Sync for MinerState
impl Unpin for MinerState
impl UnsafeUnpin for MinerState
impl UnwindSafe for MinerState
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