alterware-launcher/src/structs.rs

32 lines
702 B
Rust
Raw Normal View History

2023-08-29 06:47:40 +02:00
#[derive(serde::Deserialize, serde::Serialize)]
pub struct CdnFile {
pub name: String,
pub size: u32,
pub hash: String,
}
#[derive(serde::Deserialize, serde::Serialize)]
pub struct Game<'a> {
pub engine: &'a str,
pub client: Vec<&'a str>,
pub references: Vec<&'a str>,
pub app_id: u32,
}
2023-09-10 16:58:42 +02:00
2023-09-10 17:36:01 +02:00
#[derive(Default, serde::Deserialize, serde::Serialize)]
2023-09-10 16:58:42 +02:00
pub struct Config {
pub update_only: bool,
pub skip_self_update: bool,
pub bonus_content: bool,
}
2023-09-10 17:36:01 +02:00
// impl Default for Config {
// fn default() -> Self {
// Self {
// update_only: false,
// skip_self_update: false,
// bonus_content: false,
// }
// }
// }