pub struct ServerVersionRes {
pub server_software_version: String,
pub protocol_version: String,
}Expand description
Response to a server_version request.
This is returned as an array of two strings: [server_software_version, protocol_version].
Fields§
§server_software_version: StringServer software version string (e.g., “ElectrumX 1.18.0”).
protocol_version: StringNegotiated protocol version (e.g., “1.6”).
Trait Implementations§
Source§impl Clone for ServerVersionRes
impl Clone for ServerVersionRes
Source§fn clone(&self) -> ServerVersionRes
fn clone(&self) -> ServerVersionRes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerVersionRes
impl Debug for ServerVersionRes
Source§impl<'de> Deserialize<'de> for ServerVersionRes
impl<'de> Deserialize<'de> for ServerVersionRes
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 Freeze for ServerVersionRes
impl RefUnwindSafe for ServerVersionRes
impl Send for ServerVersionRes
impl Sync for ServerVersionRes
impl Unpin for ServerVersionRes
impl UnsafeUnpin for ServerVersionRes
impl UnwindSafe for ServerVersionRes
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