Crate qua_format

source ·
Expand description

Parse .qua files into structs

The .qua file format uses the YAML format, so serde_yaml is used for parsing.

Examples

use qua_format::Qua;
use std::fs::File;

let path = "123.qua";
let mut qua = Qua::from_file(path).expect("Could not parse qua file");
qua.title = "Never Gonna Give You Up".to_string();

let new_file = File::create("test.qua").expect("Could not create new file");
qua.to_writer(new_file).expect("Could not write to file");

Structs

Enums