Struct iota_client::builder::NetworkInfo
source · pub struct NetworkInfo {
pub network: Option<String>,
pub network_id: Option<u64>,
pub bech32_hrp: String,
pub min_pow_score: f64,
pub local_pow: bool,
pub fallback_to_local_pow: bool,
pub tips_interval: u64,
}
Expand description
Struct containing network and PoW related information
Fields§
§network: Option<String>
Network
network_id: Option<u64>
Network ID
bech32_hrp: String
Bech32 HRP
min_pow_score: f64
Mininum proof of work score
local_pow: bool
Local proof of work
fallback_to_local_pow: bool
Fallback to local proof of work if the node doesn’t support remote PoW
tips_interval: u64
Tips request interval during PoW in seconds
Trait Implementations§
source§impl Clone for NetworkInfo
impl Clone for NetworkInfo
source§fn clone(&self) -> NetworkInfo
fn clone(&self) -> NetworkInfo
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 NetworkInfo
impl Debug for NetworkInfo
source§impl Default for NetworkInfo
impl Default for NetworkInfo
source§impl<'de> Deserialize<'de> for NetworkInfo
impl<'de> Deserialize<'de> for NetworkInfo
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<NetworkInfo> for NetworkInfo
impl PartialEq<NetworkInfo> for NetworkInfo
source§fn eq(&self, other: &NetworkInfo) -> bool
fn eq(&self, other: &NetworkInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.