electron_sys/interface/
progress_bar_options.rs

1use js_sys::JsString;
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen]
5#[derive(Clone, Debug, Default, PartialEq)]
6pub struct ProgressBarOptions {
7    mode: Option<JsString>,
8}
9
10#[wasm_bindgen]
11impl ProgressBarOptions {
12    #[wasm_bindgen(constructor)]
13    pub fn new_with_values(mode: Option<JsString>) -> ProgressBarOptions {
14        ProgressBarOptions { mode }
15    }
16
17    pub fn new() -> ProgressBarOptions {
18        Default::default()
19    }
20}