YAML
YAML format (application/yaml).
Just like JSON, YAML works with field data. The YAML format has an identifier of "yaml" and is available by default.
message: 'hello, world'
person:
name: 'Bob Smith'
age: 42import "./test.yaml";
#[main]
fn main() {
assert_eq(self.message, "hello, world");
assert_eq(self.person.name, "Bob Smith");
assert_eq(self.person.age, 42);
pln(stringify("yaml", self));
}Last updated
Was this helpful?