#quake #quake-world #qtv

yanked quake_qtvinfo

Parse QTV info strings

3 releases (breaking)

0.3.0 Jul 16, 2024
0.2.0 Jul 16, 2024
0.1.0 May 4, 2024

#14 in #quake-world

27 downloads per month
Used in qtvstat

MIT license

6KB

quake_qtvinfo Test crates docs.rs

Parse QTV info strings

Usage

use quake_qtvinfo::Settings;

let settings = Settings::from(r#"\hostname\QUAKE.SE KTX Qtv\maxclients\100\*version\QTV 1.14"#);
assert_eq!(settings.version, Some("QTV 1.14".to_string()));
assert_eq!(settings.maxclients, Some(100));
assert_eq!(settings.hostname, Some("QUAKE.SE KTX Qtv".to_string()));

Fields

pub struct Settings {
    pub hostname: Option<String>,
    pub maxclients: Option<u32>,
    pub version: Option<String>,
}

See also

Dependencies

~24KB