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§
source§impl Clone for ServerFeaturesRes
impl Clone for ServerFeaturesRes
source§fn clone(&self) -> ServerFeaturesRes
fn clone(&self) -> ServerFeaturesRes
Returns a copy 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 ServerFeaturesRes
impl Debug for ServerFeaturesRes
source§impl<'de> Deserialize<'de> for ServerFeaturesRes
impl<'de> Deserialize<'de> for ServerFeaturesRes
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 RefUnwindSafe for ServerFeaturesRes
impl Send for ServerFeaturesRes
impl Sync for ServerFeaturesRes
impl Unpin for ServerFeaturesRes
impl UnwindSafe for ServerFeaturesRes
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