pub struct RootConfig {
pub protocols: ProtocolConfig,
pub provider: ProviderConfig,
pub registries: HashMap<String, RegistryConfig>,
pub data: HashMap<String, String>,
}Expand description
used to storage all structed config, from some source: cmd, file..; Impl Config trait, business init by read Config trait
Fields§
§protocols: ProtocolConfig§provider: ProviderConfig§registries: HashMap<String, RegistryConfig>§data: HashMap<String, String>Implementations§
Trait Implementations§
Source§impl Clone for RootConfig
impl Clone for RootConfig
Source§fn clone(&self) -> RootConfig
fn clone(&self) -> RootConfig
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 Config for RootConfig
impl Config for RootConfig
Source§impl Debug for RootConfig
impl Debug for RootConfig
Source§impl Default for RootConfig
impl Default for RootConfig
Source§fn default() -> RootConfig
fn default() -> RootConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RootConfig
impl<'de> Deserialize<'de> for RootConfig
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 RootConfig
impl RefUnwindSafe for RootConfig
impl Send for RootConfig
impl Sync for RootConfig
impl Unpin for RootConfig
impl UnwindSafe for RootConfig
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