Struct ic_agent::agent::status::Status

source ·
pub struct Status {
    pub ic_api_version: String,
    pub impl_source: Option<String>,
    pub impl_version: Option<String>,
    pub impl_revision: Option<String>,
    pub replica_health_status: Option<String>,
    pub root_key: Option<Vec<u8>>,
    pub values: BTreeMap<String, Box<Value>>,
}
Expand description

The structure returned by super::Agent::status, containing the information returned by the status endpoint of a replica.

Fields§

§ic_api_version: String

Identifies the interface version supported, i.e. the version of the present document that the internet computer aims to support, e.g. 0.8.1. The implementation may also return unversioned to indicate that it does not comply to a particular version, e.g. in between releases.

§impl_source: Option<String>

Optional. Identifies the implementation of the Internet Computer, by convention with the canonical location of the source code.

§impl_version: Option<String>

Optional. If the user is talking to a released version of an Internet Computer implementation, this is the version number. For non-released versions, output of git describe like 0.1.13-13-g2414721 would also be very suitable.

§impl_revision: Option<String>

Optional. The precise git revision of the Internet Computer implementation.

§replica_health_status: Option<String>

Optional. The health status of the replica. One hopes it’s “healthy”.

§root_key: Option<Vec<u8>>

Optional. The root (public) key used to verify certificates.

§values: BTreeMap<String, Box<Value>>

Contains any additional values that the replica gave as status.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more