ttmp-rs/src/model/mod_option.rs

16 lines
418 B
Rust
Raw Normal View History

2022-09-16 06:49:51 +00:00
use serde::{Deserialize, Serialize};
use crate::model::{SelectionType, SimpleMod};
2022-12-01 00:09:26 +00:00
#[derive(Debug, Deserialize, Serialize, Clone)]
2022-09-16 06:49:51 +00:00
#[serde(rename_all = "PascalCase")]
pub struct ModOption {
pub name: String,
pub description: Option<String>,
pub image_path: Option<String>,
pub mods_jsons: Vec<SimpleMod>,
pub group_name: String,
pub selection_type: SelectionType,
pub is_checked: bool,
}