electron_sys/interface/
move_to_applications_folder_options.rs

1use js_sys::Function;
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen]
5#[derive(Clone, Debug, Eq, PartialEq)]
6pub struct MoveToApplicationsFolderOptions {
7    conflict_handler: Function,
8}
9
10#[wasm_bindgen]
11impl MoveToApplicationsFolderOptions {
12    #[wasm_bindgen(constructor)]
13    pub fn new(conflict_handler: &Function) -> MoveToApplicationsFolderOptions {
14        MoveToApplicationsFolderOptions {
15            conflict_handler: conflict_handler.clone(),
16        }
17    }
18
19    #[wasm_bindgen(getter)]
20    pub fn conflict_handler(&self) -> Function {
21        self.conflict_handler.clone()
22    }
23
24    #[wasm_bindgen(setter)]
25    pub fn set_conflict_handler(&mut self, value: Function) {
26        self.conflict_handler = value;
27    }
28}