quake_qtvinfo

Crates.ioquake_qtvinfo
lib.rsquake_qtvinfo
version0.3.0
sourcesrc
created_at2024-05-04 11:46:19.868728
updated_at2024-07-16 14:27:38.812488
descriptionParse QTV info strings.
homepage
repositoryhttps://github.com/vikpe/quake_qtvinfo
max_upload_size
id1229548
size5,164
Viktor Persson (vikpe)

documentation

README

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

Commit count: 4

cargo fmt