pub struct NetworkConfig {
pub name: String,
pub live: bool,
pub chain_id: Option<String>,
pub bech32: Bech32Prefixes,
pub coin: CoinInfo,
pub endpoints: Option<Endpoints>,
}Expand description
A fully described network preset.
Fields§
§name: StringPreset name.
live: boolWhether the network is live.
chain_id: Option<String>Chain ID.
bech32: Bech32Prefixesbech32 prefixes.
coin: CoinInfoStaking coin metadata.
endpoints: Option<Endpoints>Service endpoints.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
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 NetworkConfig
impl Debug for NetworkConfig
impl Eq for NetworkConfig
Source§impl PartialEq for NetworkConfig
impl PartialEq for NetworkConfig
Source§fn eq(&self, other: &NetworkConfig) -> bool
fn eq(&self, other: &NetworkConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkConfig
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnsafeUnpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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