pub struct ChainState {
pub block: u64,
pub chain_tip: u64,
pub current_price: BigInt,
pub total_amount: BigInt,
}Expand description
GET /chainstate response. Mirrors bee-go’s ChainStateResponse,
including the bigint-as-string custom decode for currentPrice /
totalAmount (one of the three live-Bee bug fixes bee-go hit).
Fields§
§block: u64Latest block number Bee has settled to.
chain_tip: u64Highest block number Bee has observed (head of chain).
current_price: BigIntPer-chunk price in PLUR/block.
total_amount: BigIntTotal accumulated price (PLUR).
Trait Implementations§
Source§impl Clone for ChainState
impl Clone for ChainState
Source§fn clone(&self) -> ChainState
fn clone(&self) -> ChainState
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 ChainState
impl Debug for ChainState
Source§impl<'de> Deserialize<'de> for ChainState
impl<'de> Deserialize<'de> for ChainState
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 ChainState
impl PartialEq for ChainState
Source§fn eq(&self, other: &ChainState) -> bool
fn eq(&self, other: &ChainState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ChainState
impl StructuralPartialEq for ChainState
Auto Trait Implementations§
impl Freeze for ChainState
impl RefUnwindSafe for ChainState
impl Send for ChainState
impl Sync for ChainState
impl Unpin for ChainState
impl UnsafeUnpin for ChainState
impl UnwindSafe for ChainState
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