Crate kv2

Source
Expand description

§KV2

KV2 (KeyValues2) is a key value format created by valve this crates handles serde support and parsing of that format in rust

§Example

use kv2::parse_kv2;

let input = r#"
"DmElement"
{
"id" "elementid" "df939bf4-8dd6-435c-9eef-a6e25434ecca"
"name" "string" "root"
}
"#;

match parse_kv2(input) {
  Ok(data) => {
    println!("{:?}", data);
  }
  Err(e) => {
    println!("{:?}", e);
  }
}

Modules§

kv2_serde

Structs§

KV2Object

Enums§

KV2Value

Functions§

parse_kv2