keyvalues3 1.1.0

A Rust library and CLI tool for parsing, formatting, and converting Valve's KeyValues3 (KV3) text format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::fmt::Display;

#[derive(Debug, Clone, PartialEq)]
pub struct Metadata {
    pub key: String,
    pub value: String,
    pub version: String,
}

impl Display for Metadata {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}:{}:version{{{}}}", self.key, self.value, self.version)
    }
}