pub struct ProtocolsConfig {
pub networks: BTreeMap<String, Network>,
pub chains: BTreeMap<String, ChainOptions>,
}
Expand description
The entire on-chain protocol configuration containing the information about usable networks and chains.
Fields§
§networks: BTreeMap<String, Network>
§chains: BTreeMap<String, ChainOptions>
Implementations§
Source§impl ProtocolsConfig
impl ProtocolsConfig
Sourcepub fn supported_networks(&self, version: &str) -> Vec<String>
pub fn supported_networks(&self, version: &str) -> Vec<String>
Returns a list of environments which the node is able to work with TODO: crate::constants::APP_VERSION_COERCED
Trait Implementations§
Source§impl Clone for ProtocolsConfig
impl Clone for ProtocolsConfig
Source§fn clone(&self) -> ProtocolsConfig
fn clone(&self) -> ProtocolsConfig
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 ProtocolsConfig
impl Debug for ProtocolsConfig
Source§impl Default for ProtocolsConfig
impl Default for ProtocolsConfig
Source§impl<'de> Deserialize<'de> for ProtocolsConfig
impl<'de> Deserialize<'de> for ProtocolsConfig
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 FromStr for ProtocolsConfig
impl FromStr for ProtocolsConfig
Source§impl PartialEq for ProtocolsConfig
impl PartialEq for ProtocolsConfig
Source§impl Serialize for ProtocolsConfig
impl Serialize for ProtocolsConfig
Auto Trait Implementations§
impl Freeze for ProtocolsConfig
impl RefUnwindSafe for ProtocolsConfig
impl Send for ProtocolsConfig
impl Sync for ProtocolsConfig
impl Unpin for ProtocolsConfig
impl UnwindSafe for ProtocolsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more