Struct config_struct::Options
[−]
[src]
pub struct Options { pub struct_name: String, pub const_name: Option<String>, pub derived_traits: Vec<String>, }
The set of options for generating a config struct.
Fields
struct_name: String
The name of the resulting struct.
Defaults to "Config"
.
const_name: Option<String>
The name of the const instance of the resulting struct.
Defaults to None
, which corresponds to struct_name
in uppercase.
derived_traits: Vec<String>
A list of the traits to derive on the resulting struct.
Defaults to ["Debug", "Clone", "Serialize", "Deserialize"]
.
Trait Implementations
impl Debug for Options
[src]
impl Clone for Options
[src]
fn clone(&self) -> Options
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more