pub struct SyncInfo {
pub latest_block_hash: CryptoHash,
pub latest_block_height: u64,
pub latest_state_root: Option<CryptoHash>,
pub latest_block_time: String,
pub syncing: bool,
pub earliest_block_hash: Option<CryptoHash>,
pub earliest_block_height: Option<u64>,
pub earliest_block_time: Option<String>,
pub epoch_id: Option<CryptoHash>,
pub epoch_start_height: Option<u64>,
}Expand description
Sync information.
Fields§
§latest_block_hash: CryptoHashLatest block hash.
latest_block_height: u64Latest block height.
latest_state_root: Option<CryptoHash>Latest state root.
latest_block_time: StringLatest block timestamp.
syncing: boolWhether the node is syncing.
earliest_block_hash: Option<CryptoHash>Earliest block hash (if available).
earliest_block_height: Option<u64>Earliest block height (if available).
earliest_block_time: Option<String>Earliest block time (if available).
epoch_id: Option<CryptoHash>Current epoch ID.
epoch_start_height: Option<u64>Epoch start height.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SyncInfo
impl<'de> Deserialize<'de> for SyncInfo
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 SyncInfo
impl RefUnwindSafe for SyncInfo
impl Send for SyncInfo
impl Sync for SyncInfo
impl Unpin for SyncInfo
impl UnsafeUnpin for SyncInfo
impl UnwindSafe for SyncInfo
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