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": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/CryptoHash"
}
]
}
]
},
"earliest_block_height": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"earliest_block_time": {
"type": [
"string",
"null"
]
},
"epoch_id": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/EpochId"
}
]
}
]
},
"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: boolTrait 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§const fn clone_from(&mut self, source: &Self)
const 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<StatusSyncInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StatusSyncInfo, <__D as Deserializer<'de>>::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) -> StatusSyncInfo
fn from(value: &StatusSyncInfo) -> StatusSyncInfo
Converts to this type from the input type.
Source§impl Serialize for StatusSyncInfo
impl Serialize for StatusSyncInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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