pub struct ServerFeaturesRes {
    pub server_version: String,
    pub genesis_hash: [u8; 32],
    pub protocol_min: String,
    pub protocol_max: String,
    pub hash_function: Option<String>,
    pub pruning: Option<i64>,
}
Expand description

Response to a server_features request.

Fields

server_version: String

Server version reported.

genesis_hash: [u8; 32]

Hash of the genesis block.

protocol_min: String

Minimum supported version of the protocol.

protocol_max: String

Maximum supported version of the protocol.

hash_function: Option<String>

Hash function used to create the ScriptHash.

pruning: Option<i64>

Pruned height of the server.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

Returns the argument unchanged.

Calls U::from(self).

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

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.