Skip to main content

from_str

Function from_str 

Source
pub fn from_str<F: Copy + PartialEq>(
    raw_config: &str,
    config_dir: &Path,
    file_id: F,
    strict: Option<bool>,
    diagnostics: &mut Vec<Diagnostic<F>>,
) -> Result<ConfigFile<F>, ConfigError>
Expand description

Parse a micromux configuration from a YAML string.

ยงErrors

Returns an error if the YAML cannot be parsed or if the resulting value does not match the expected schema.