web_sys/features/
gen_FileSystemCreateWritableOptions.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "FileSystemCreateWritableOptions"
10 )]
11 #[derive(Debug, Clone, PartialEq, Eq)]
12 #[doc = "The `FileSystemCreateWritableOptions` dictionary."]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"]
15 pub type FileSystemCreateWritableOptions;
16 #[doc = "Get the `keepExistingData` field of this object."]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"]
19 #[wasm_bindgen(method, getter = "keepExistingData")]
20 pub fn get_keep_existing_data(this: &FileSystemCreateWritableOptions) -> Option<bool>;
21 #[doc = "Change the `keepExistingData` field of this object."]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"]
24 #[wasm_bindgen(method, setter = "keepExistingData")]
25 pub fn set_keep_existing_data(this: &FileSystemCreateWritableOptions, val: bool);
26}
27impl FileSystemCreateWritableOptions {
28 #[doc = "Construct a new `FileSystemCreateWritableOptions`."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `FileSystemCreateWritableOptions`*"]
31 pub fn new() -> Self {
32 #[allow(unused_mut)]
33 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
34 ret
35 }
36 #[deprecated = "Use `set_keep_existing_data()` instead."]
37 pub fn keep_existing_data(&mut self, val: bool) -> &mut Self {
38 self.set_keep_existing_data(val);
39 self
40 }
41}
42impl Default for FileSystemCreateWritableOptions {
43 fn default() -> Self {
44 Self::new()
45 }
46}