Struct amethyst_config::ConfigMeta [] [src]

pub struct ConfigMeta {
    pub path: PathBuf,
    pub fields: Vec<String>,
    pub parent: Option<Box<ConfigMeta>>,
    pub ty: &'static str,
    pub name: &'static str,
    pub bad_value: bool,
    pub options: Vec<String>,
}

Metadata for a configuration structure

Fields

Where the file is located, defaults to "config/config.yml"

List from top-level to bottom-level configs

Parent meta

String representation of the type

Name of the field

Whether key is bad or not

Options to display to user, usually used for enums

Methods

impl ConfigMeta
[src]

Displays the meta's fields in order e.g. Config->nested_config->field

Returns the highest level parent or the root meta of the configuration

Trait Implementations

impl Clone for ConfigMeta
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ConfigMeta
[src]

Formats the value using the given formatter.

impl Default for ConfigMeta
[src]

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