toml

Function toml 

Source
pub fn toml(input: &str) -> QuartzResult
Expand description

Checks if a string is valid TOML.

Alias for toml_as::<toml::Value>().

ยงExamples

use quartz_cli::validator;

let input = r#"
    title = 'TOML Example'

    [owner]
    name = 'Lisa'
"#;

assert!(validator::toml(input).is_ok());