Function parse_main

Source
pub fn parse_main(s: &str) -> Result<Main, ParseError>
Expand description

Parses a piece of config in “main” context (i.e. top-level)

Currently, this is the same as parse_directives (except wraps everyting to a Main struct), but we expect to add validation/context checks in this function.