pub struct NetworkConfigResponse {
pub networks: HashMap<String, NetworkConfigEntry>,
}Expand description
Chain configuration for the single network this deployment serves,
wrapped in a networks map keyed by network name. Exactly one
entry per deployment — the server refuses to start if misconfigured
(enforced at boot by NetworkConfig.validate_invariant!/0).
The map wrapper exists so SDK clients can deserialize a stable shape
({networks: {<name>: entry}}) instead of branching on top-level
fields.
Fields§
§networks: HashMap<String, NetworkConfigEntry>Network name (testnet or mainnet) → chain metadata. Exactly
one key per the one-network-per-deployment invariant.
Trait Implementations§
Source§impl Clone for NetworkConfigResponse
impl Clone for NetworkConfigResponse
Source§impl Debug for NetworkConfigResponse
impl Debug for NetworkConfigResponse
Source§impl Default for NetworkConfigResponse
impl Default for NetworkConfigResponse
Source§impl<'de> Deserialize<'de> for NetworkConfigResponse
impl<'de> Deserialize<'de> for NetworkConfigResponse
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 NetworkConfigResponse
impl RefUnwindSafe for NetworkConfigResponse
impl Send for NetworkConfigResponse
impl Sync for NetworkConfigResponse
impl Unpin for NetworkConfigResponse
impl UnsafeUnpin for NetworkConfigResponse
impl UnwindSafe for NetworkConfigResponse
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