wccg_models/content/
registration_option.rs1use getset::{Getters, Setters};
2use serde::{Deserialize, Serialize};
3use super::custom_field::CustomField;
4
5#[cfg(feature = "wasm")]
6use wasm_bindgen::prelude::wasm_bindgen;
7
8#[cfg_attr(feature = "wasm", wasm_bindgen)]
9#[derive(Debug, Serialize, Deserialize, Getters, Setters, Clone)]
10#[getset(get = "pub", set = "pub")]
11#[serde(rename_all = "camelCase")]
12pub struct RegistrationOption {
13 id: String,
14 title: String,
15 description: Option<String>,
16 payment_paise: i32,
17 max_count: Option<i32>,
18 active: bool,
19 notes: Option<String>,
20 instructions: Option<String>,
21 custom_fields: Option<Vec<CustomField>>,
22}