pub enum Output {
Console,
File,
Both,
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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 Eq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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