1 2 3 4 5 6 7 8 9 10 11
#[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct ModuleConfig { pub emscripten: Option<bool> } impl ModuleConfig { pub fn with_emscripten(mut self) -> Self { self.emscripten = Some(true); self } }