pub struct ServerFeatures {
pub server_version: String,
pub protocol_max: String,
pub genesis_hash: String,
pub hash_function: String,
}Expand description
Server features and capabilities.
Fields§
§server_version: StringServer software identification
protocol_max: StringProtocol version
genesis_hash: StringGenesis block hash
hash_function: StringHash function used
Trait Implementations§
Source§impl Clone for ServerFeatures
impl Clone for ServerFeatures
Source§fn clone(&self) -> ServerFeatures
fn clone(&self) -> ServerFeatures
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 ServerFeatures
impl Debug for ServerFeatures
Source§impl<'de> Deserialize<'de> for ServerFeatures
impl<'de> Deserialize<'de> for ServerFeatures
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
Source§impl PartialEq for ServerFeatures
impl PartialEq for ServerFeatures
Source§impl Serialize for ServerFeatures
impl Serialize for ServerFeatures
impl StructuralPartialEq for ServerFeatures
Auto Trait Implementations§
impl Freeze for ServerFeatures
impl RefUnwindSafe for ServerFeatures
impl Send for ServerFeatures
impl Sync for ServerFeatures
impl Unpin for ServerFeatures
impl UnwindSafe for ServerFeatures
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