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§

source

fn print_toml(&self)

👎Deprecated: plan to be removed

Print current configuration in toml format.

source

fn from_json(s: &str) -> Result<Self>

Deserialize an instance of type T from a string of JSON text.

source

fn from_toml(s: &str) -> Result<Self>

Deserialize an instance of type T from a string of TOML text.

source

fn to_json(&self) -> Result<String>

Serialize it to a JSON string.

source

fn to_toml(&self) -> Result<String>

Serialize self to a TOML string.

Implementors§