electron_sys/interface/
from_partition_options.rs

1use wasm_bindgen::prelude::*;
2
3#[wasm_bindgen]
4#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct FromPartitionOptions {
6    cache: bool,
7}
8
9#[wasm_bindgen]
10impl FromPartitionOptions {
11    #[wasm_bindgen(constructor)]
12    pub fn new(cache: bool) -> FromPartitionOptions {
13        FromPartitionOptions { cache }
14    }
15
16    #[wasm_bindgen(getter)]
17    pub fn cache(self) -> bool {
18        self.cache
19    }
20
21    #[wasm_bindgen(setter)]
22    pub fn set_cache(mut self, value: bool) {
23        self.cache = value;
24    }
25}