Enum yaml2json_rs::Style [−][src]
pub enum Style { COMPACT, PRETTY, }
Expand description
Style
defines JSON output formats for Yaml2Json
.
Variants
Style::COMPACT
outputs JSON on a single line.
e.g. for the following YAML:
--- hello: world spec: items: - a - b
the JSON output will be:
{"hello":"world","spec":{"items":["a","b"]}}
Style::PRETTY
outputs JSON on multiple lines, with automatic indentation.
e.g. for the following YAML:
--- hello: world spec: items: - a - b
the JSON output will be:
{ "hello": "world", "spec": { "items": [ "a", "b" ] } }
Auto Trait Implementations
impl RefUnwindSafe for Style
impl UnwindSafe for Style