pub struct ChainState {
pub height: u64,
pub status: String,
pub last_updated: u64,
pub last_sync_time: u64,
pub best_block_hash: String,
pub network: String,
pub epoch: Option<String>,
pub mode: Option<String>,
pub burn_block_height: Option<u64>,
}Fields§
§height: u64§status: String§last_updated: u64§last_sync_time: u64§best_block_hash: String§network: String§epoch: Option<String>Research enhancement: Nakamoto-specific fields
mode: Option<String>§burn_block_height: Option<u64>Trait Implementations§
Source§impl Clone for ChainState
impl Clone for ChainState
Source§impl Debug for ChainState
impl Debug for ChainState
Source§impl Default for ChainState
impl Default 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
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