pub struct GetNetworkInfoResult {Show 15 fields
pub version: usize,
pub subversion: String,
pub protocol_version: usize,
pub local_services: String,
pub local_relay: bool,
pub time_offset: isize,
pub connections: usize,
pub connections_in: Option<usize>,
pub connections_out: Option<usize>,
pub network_active: bool,
pub networks: Vec<GetNetworkInfoResultNetwork>,
pub relay_fee: Amount,
pub incremental_fee: Amount,
pub local_addresses: Vec<GetNetworkInfoResultAddress>,
pub warnings: StringOrStringArray,
}
Fields§
§version: usize
§subversion: String
§protocol_version: usize
§local_services: String
§local_relay: bool
§time_offset: isize
§connections: usize
§connections_in: Option<usize>
The number of inbound connections Added in Bitcoin Core v0.21
connections_out: Option<usize>
The number of outbound connections Added in Bitcoin Core v0.21
network_active: bool
§networks: Vec<GetNetworkInfoResultNetwork>
§relay_fee: Amount
§incremental_fee: Amount
§local_addresses: Vec<GetNetworkInfoResultAddress>
§warnings: StringOrStringArray
Trait Implementations§
source§impl Clone for GetNetworkInfoResult
impl Clone for GetNetworkInfoResult
source§fn clone(&self) -> GetNetworkInfoResult
fn clone(&self) -> GetNetworkInfoResult
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 GetNetworkInfoResult
impl Debug for GetNetworkInfoResult
source§impl<'de> Deserialize<'de> for GetNetworkInfoResult
impl<'de> Deserialize<'de> for GetNetworkInfoResult
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 GetNetworkInfoResult
impl PartialEq for GetNetworkInfoResult
source§fn eq(&self, other: &GetNetworkInfoResult) -> bool
fn eq(&self, other: &GetNetworkInfoResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetNetworkInfoResult
impl Serialize for GetNetworkInfoResult
impl Eq for GetNetworkInfoResult
impl StructuralPartialEq for GetNetworkInfoResult
Auto Trait Implementations§
impl Freeze for GetNetworkInfoResult
impl RefUnwindSafe for GetNetworkInfoResult
impl Send for GetNetworkInfoResult
impl Sync for GetNetworkInfoResult
impl Unpin for GetNetworkInfoResult
impl UnwindSafe for GetNetworkInfoResult
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