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

The name of the resulting struct.

Defaults to "Config".

The name of the const instance of the resulting struct.

Defaults to None, which corresponds to struct_name in uppercase.

A list of the traits to derive on the resulting struct.

Defaults to ["Debug", "Clone", "Serialize", "Deserialize"].

Trait Implementations

impl Debug for Options
[src]

[src]

Formats the value using the given formatter.

impl Clone for Options
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Options
[src]

[src]

Returns the "default value" for a type. Read more