pub struct StatusSyncInfo {
pub earliest_block_hash: Option<CryptoHash>,
pub earliest_block_height: Option<u64>,
pub earliest_block_time: Option<String>,
pub epoch_id: Option<EpochId>,
pub epoch_start_height: Option<u64>,
pub latest_block_hash: CryptoHash,
pub latest_block_height: u64,
pub latest_block_time: String,
pub latest_state_root: CryptoHash,
pub syncing: bool,
}
Expand description
StatusSyncInfo
JSON schema
{
"type": "object",
"required": [
"latest_block_hash",
"latest_block_height",
"latest_block_time",
"latest_state_root",
"syncing"
],
"properties": {
"earliest_block_hash": {
"anyOf": [
{
"$ref": "#/components/schemas/CryptoHash"
},
{
"type": "null"
}
]
},
"earliest_block_height": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"earliest_block_time": {
"type": [
"string",
"null"
]
},
"epoch_id": {
"anyOf": [
{
"$ref": "#/components/schemas/EpochId"
},
{
"type": "null"
}
]
},
"epoch_start_height": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"latest_block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"latest_block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"latest_block_time": {
"type": "string"
},
"latest_state_root": {
"$ref": "#/components/schemas/CryptoHash"
},
"syncing": {
"type": "boolean"
}
}
}
Fields§
§earliest_block_hash: Option<CryptoHash>
§earliest_block_height: Option<u64>
§earliest_block_time: Option<String>
§epoch_id: Option<EpochId>
§epoch_start_height: Option<u64>
§latest_block_hash: CryptoHash
§latest_block_height: u64
§latest_block_time: String
§latest_state_root: CryptoHash
§syncing: bool
Trait Implementations§
Source§impl Clone for StatusSyncInfo
impl Clone for StatusSyncInfo
Source§fn clone(&self) -> StatusSyncInfo
fn clone(&self) -> StatusSyncInfo
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 StatusSyncInfo
impl Debug for StatusSyncInfo
Source§impl<'de> Deserialize<'de> for StatusSyncInfo
impl<'de> Deserialize<'de> for StatusSyncInfo
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 From<&StatusSyncInfo> for StatusSyncInfo
impl From<&StatusSyncInfo> for StatusSyncInfo
Source§fn from(value: &StatusSyncInfo) -> Self
fn from(value: &StatusSyncInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StatusSyncInfo
impl RefUnwindSafe for StatusSyncInfo
impl Send for StatusSyncInfo
impl Sync for StatusSyncInfo
impl Unpin for StatusSyncInfo
impl UnwindSafe for StatusSyncInfo
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