Macro ezconf::ezconf_str [−][src]
macro_rules! ezconf_str { ($confname:ident: $key:expr, $default:expr) => { ... }; }
Read a string (&str
) from the config
Example
ezconf_file!(CONFIG = "tests/test.toml"); let val = ezconf_str!(CONFIG: "string.a", "Default"); assert!(val == "Foo");