Struct electrum_client::ServerFeaturesRes
source · [−]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
sourceimpl Debug for ServerFeaturesRes
impl Debug for ServerFeaturesRes
sourceimpl<'de> Deserialize<'de> for ServerFeaturesRes
impl<'de> Deserialize<'de> for ServerFeaturesRes
sourcefn 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 RefUnwindSafe for ServerFeaturesRes
impl Send for ServerFeaturesRes
impl Sync for ServerFeaturesRes
impl Unpin for ServerFeaturesRes
impl UnwindSafe for ServerFeaturesRes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more