pub struct RedistributionState {Show 15 fields
pub minimum_gas_funds: Option<BigInt>,
pub has_sufficient_funds: bool,
pub is_frozen: bool,
pub is_fully_synced: bool,
pub phase: String,
pub round: u64,
pub last_won_round: u64,
pub last_played_round: u64,
pub last_frozen_round: u64,
pub last_selected_round: u64,
pub last_sample_duration_seconds: u64,
pub block: u64,
pub reward: Option<BigInt>,
pub fees: Option<BigInt>,
pub is_healthy: bool,
}Expand description
Redistribution-state snapshot. Mirrors bee-go
RedistributionStateResponse.
Fields§
§minimum_gas_funds: Option<BigInt>Minimum gas funds to play a round.
has_sufficient_funds: boolWhether the node currently has those funds.
is_frozen: boolWhether the node is frozen out of redistribution.
is_fully_synced: boolWhether the node believes it is fully synced.
phase: StringCurrent phase string.
round: u64Current round.
last_won_round: u64Last round won.
last_played_round: u64Last round played.
last_frozen_round: u64Last round frozen.
last_selected_round: u64Last round selected.
last_sample_duration_seconds: u64Last sample duration in seconds.
block: u64Latest seen block.
reward: Option<BigInt>Cumulative reward (PLUR).
fees: Option<BigInt>Cumulative fees (PLUR).
is_healthy: boolWhether the redistribution worker is healthy.
Trait Implementations§
Source§impl Clone for RedistributionState
impl Clone for RedistributionState
Source§fn clone(&self) -> RedistributionState
fn clone(&self) -> RedistributionState
Returns a duplicate of the value. Read more
1.0.0 · 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 RedistributionState
impl Debug for RedistributionState
Source§impl Default for RedistributionState
impl Default for RedistributionState
Source§fn default() -> RedistributionState
fn default() -> RedistributionState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RedistributionState
impl<'de> Deserialize<'de> for RedistributionState
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
Source§impl PartialEq for RedistributionState
impl PartialEq for RedistributionState
impl Eq for RedistributionState
impl StructuralPartialEq for RedistributionState
Auto Trait Implementations§
impl Freeze for RedistributionState
impl RefUnwindSafe for RedistributionState
impl Send for RedistributionState
impl Sync for RedistributionState
impl Unpin for RedistributionState
impl UnsafeUnpin for RedistributionState
impl UnwindSafe for RedistributionState
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