Trait gchemol_gut::config::Configure
source · pub trait Configure: Default + DeserializeOwned + Serialize {
// Provided methods
fn print_toml(&self) { ... }
fn from_json(s: &str) -> Result<Self> { ... }
fn from_toml(s: &str) -> Result<Self> { ... }
fn to_json(&self) -> Result<String> { ... }
fn to_toml(&self) -> Result<String> { ... }
}
Provided Methods§
sourcefn print_toml(&self)
fn print_toml(&self)
👎Deprecated: plan to be removed
Print current configuration in toml format.
sourcefn from_json(s: &str) -> Result<Self>
fn from_json(s: &str) -> Result<Self>
Deserialize an instance of type T from a string of JSON text.