Struct amethyst_config::LoggingConfig
[−]
[src]
pub struct LoggingConfig { pub file_path: String, pub output_level: String, pub logging_level: String, // some fields omitted }
Fields
file_path: String
output_level: String
logging_level: String
Methods
impl LoggingConfig
[src]
Trait Implementations
impl Debug for LoggingConfig
[src]
impl Clone for LoggingConfig
[src]
fn clone(&self) -> LoggingConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for LoggingConfig
[src]
impl Element for LoggingConfig
[src]
fn from_yaml(meta: &ConfigMeta, config: &Yaml) -> Result<Self, ConfigError>
Convert yaml element into a rust type, Raises an error if it is not the yaml element expected Read more
fn to_yaml(&self, path: &Path) -> Yaml
Converts rust type into a yaml element for writing Requires the path for external configs Read more
fn set_meta(&mut self, meta: &ConfigMeta)
Sets the meta data of a config structure, only works on config structures
fn meta(&self) -> Option<ConfigMeta>
Returns meta data if it is a config structure
fn write_file(&self) -> Result<(), ConfigError>
Recursively writes to files given the configuration's current context. Read more
fn from_file_raw(meta: &ConfigMeta, path: &Path) -> Result<Self, ConfigError>
From a file relative to current config
fn from_file(path: &Path) -> Result<Self, ConfigError>
From a file relative to project