pub struct StatusResponse {Show 13 fields
pub protocol_version: u32,
pub latest_protocol_version: u32,
pub chain_id: String,
pub genesis_hash: CryptoHash,
pub rpc_addr: Option<String>,
pub node_public_key: Option<String>,
pub node_key: Option<String>,
pub validator_account_id: Option<AccountId>,
pub validator_public_key: Option<PublicKey>,
pub validators: Vec<ValidatorInfo>,
pub sync_info: SyncInfo,
pub version: NodeVersion,
pub uptime_sec: Option<u64>,
}Expand description
Node status response.
Fields§
§protocol_version: u32Protocol version.
latest_protocol_version: u32Latest protocol version supported.
chain_id: StringChain ID.
genesis_hash: CryptoHashGenesis hash.
rpc_addr: Option<String>RPC address.
node_public_key: Option<String>Node public key.
node_key: Option<String>Node key (deprecated).
validator_account_id: Option<AccountId>Validator account ID (if validating).
validator_public_key: Option<PublicKey>Validator public key (if validating).
validators: Vec<ValidatorInfo>List of current validators.
sync_info: SyncInfoSync information.
version: NodeVersionNode version.
uptime_sec: Option<u64>Uptime in seconds.
Trait Implementations§
Source§impl Clone for StatusResponse
impl Clone for StatusResponse
Source§fn clone(&self) -> StatusResponse
fn clone(&self) -> StatusResponse
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 StatusResponse
impl Debug for StatusResponse
Source§impl<'de> Deserialize<'de> for StatusResponse
impl<'de> Deserialize<'de> for StatusResponse
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 StatusResponse
impl RefUnwindSafe for StatusResponse
impl Send for StatusResponse
impl Sync for StatusResponse
impl Unpin for StatusResponse
impl UnsafeUnpin for StatusResponse
impl UnwindSafe for StatusResponse
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