wccg_models/event/
tracking.rs1use crate::event::score_unit::ScoreUnit;
2use serde_json::Value;
3use getset::{Getters, Setters};
4use serde::{Deserialize, Serialize};
5
6#[cfg(feature = "wasm")]
7use wasm_bindgen::prelude::wasm_bindgen;
8
9#[cfg_attr(feature = "wasm", wasm_bindgen)]
10#[derive(Debug, Serialize, Deserialize, Getters, Setters, Clone)]
11#[getset(get = "pub", set = "pub")]
12#[serde(rename_all = "camelCase")]
13pub struct Tracking {
14 target_score: i32,
15 unit: ScoreUnit,
16 auto_approval_active: bool,
17 auto_approval_rule: Option<Value>,
18}