pub struct CatchupStatusView {
pub blocks_to_catchup: Vec<BlockStatusView>,
pub shard_sync_status: CatchupStatusViewShardSyncStatus,
pub sync_block_hash: CryptoHash,
pub sync_block_height: u64,
}
Expand description
Status of the catchup process
JSON schema
{
"description": "Status of the [catchup](https://near.github.io/nearcore/architecture/how/sync.html#catchup) process",
"type": "object",
"required": [
"blocks_to_catchup",
"shard_sync_status",
"sync_block_hash",
"sync_block_height"
],
"properties": {
"blocks_to_catchup": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BlockStatusView"
}
},
"shard_sync_status": {
"type": "object",
"additionalProperties": false
},
"sync_block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"sync_block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
Fields§
§blocks_to_catchup: Vec<BlockStatusView>
§shard_sync_status: CatchupStatusViewShardSyncStatus
§sync_block_hash: CryptoHash
§sync_block_height: u64
Trait Implementations§
Source§impl Clone for CatchupStatusView
impl Clone for CatchupStatusView
Source§fn clone(&self) -> CatchupStatusView
fn clone(&self) -> CatchupStatusView
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 CatchupStatusView
impl Debug for CatchupStatusView
Source§impl<'de> Deserialize<'de> for CatchupStatusView
impl<'de> Deserialize<'de> for CatchupStatusView
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<&CatchupStatusView> for CatchupStatusView
impl From<&CatchupStatusView> for CatchupStatusView
Source§fn from(value: &CatchupStatusView) -> Self
fn from(value: &CatchupStatusView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CatchupStatusView
impl RefUnwindSafe for CatchupStatusView
impl Send for CatchupStatusView
impl Sync for CatchupStatusView
impl Unpin for CatchupStatusView
impl UnwindSafe for CatchupStatusView
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