pub struct LogConf {
pub level: String,
pub levels: Option<BTreeMap<String, String>>,
pub output: Output,
pub file: Option<FileLogConf>,
/* private fields */
}Fields§
§level: String§levels: Option<BTreeMap<String, String>>§output: Output§file: Option<FileLogConf>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogConf
impl<'de> Deserialize<'de> for LogConf
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
impl StructuralPartialEq for LogConf
Auto Trait Implementations§
impl Freeze for LogConf
impl RefUnwindSafe for LogConf
impl Send for LogConf
impl Sync for LogConf
impl Unpin for LogConf
impl UnwindSafe for LogConf
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,
Source§impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
fn load_conf(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn save_conf(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
Source§impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> ConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
Source§fn from_conf(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn from_conf(path: &Path) -> Result<T, StructError<ConfIOReason>>
👎Deprecated since 0.3.0: Use load_conf() instead
fn save_conf(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
fn load_conf(path: &Path) -> Result<T, StructError<ConfIOReason>>
Source§impl<T> EnvTomlLoad<T> for Twhere
T: DeserializeOwned,
impl<T> EnvTomlLoad<T> for Twhere
T: DeserializeOwned,
fn env_load_toml( path: &Path, dict: &ValueDict, ) -> Result<T, StructError<ConfIOReason>>
Source§impl<T> TextConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> TextConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
fn load_valconf(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn save_valconf(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
Source§impl<T> TextConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> TextConfigIO<T> for Twhere
T: DeserializeOwned + Serialize,
Source§fn from_valconf(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn from_valconf(path: &Path) -> Result<T, StructError<ConfIOReason>>
👎Deprecated since 0.3.0: Use load_valconf() instead
fn save_valconf(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
fn load_valconf(path: &Path) -> Result<T, StructError<ConfIOReason>>
Source§impl<T> TomlIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> TomlIO<T> for Twhere
T: DeserializeOwned + Serialize,
fn load_toml(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn save_toml(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
Source§impl<T> TomlIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> TomlIO<T> for Twhere
T: DeserializeOwned + Serialize,
Source§fn from_toml(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn from_toml(path: &Path) -> Result<T, StructError<ConfIOReason>>
👎Deprecated since 0.3.0: Use load_toml() instead
fn save_toml(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
fn load_toml(path: &Path) -> Result<T, StructError<ConfIOReason>>
Source§impl<T> YamlIO<T> for Twhere
T: DeserializeOwned + Serialize,
impl<T> YamlIO<T> for Twhere
T: DeserializeOwned + Serialize,
Source§fn from_yaml(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn from_yaml(path: &Path) -> Result<T, StructError<ConfIOReason>>
👎Deprecated since 0.3.0: Use load_yaml() instead
fn save_yaml(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
fn load_yaml(path: &Path) -> Result<T, StructError<ConfIOReason>>
Source§fn from_yml(path: &Path) -> Result<T, StructError<ConfIOReason>>
fn from_yml(path: &Path) -> Result<T, StructError<ConfIOReason>>
👎Deprecated since 0.3.0: Use load_yaml() instead
Source§fn save_yml(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
fn save_yml(&self, path: &Path) -> Result<(), StructError<ConfIOReason>>
👎Deprecated since 0.3.0: Use save_yaml() instead