pub trait Configure:
Default
+ DeserializeOwned
+ Serialize {
// Provided methods
fn print_toml(&self) { ... }
fn from_json(s: &str) -> Result<Self, Error> { ... }
fn from_toml(s: &str) -> Result<Self, Error> { ... }
fn to_json(&self) -> Result<String, Error> { ... }
fn to_toml(&self) -> Result<String, Error> { ... }
}Provided Methods§
Sourcefn print_toml(&self)
👎Deprecated: plan to be removed
fn print_toml(&self)
Print current configuration in toml format.
Sourcefn from_json(s: &str) -> Result<Self, Error>
fn from_json(s: &str) -> Result<Self, Error>
Deserialize an instance of type T from a string of JSON text.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.