#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = OpenFilePickerOptions)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `OpenFilePickerOptions` dictionary."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type OpenFilePickerOptions;
#[wasm_bindgen(method, setter = "excludeAcceptAllOption")]
fn exclude_accept_all_option_shim(this: &OpenFilePickerOptions, val: bool);
#[wasm_bindgen(method, setter = "id")]
fn id_shim(this: &OpenFilePickerOptions, val: &str);
#[wasm_bindgen(method, setter = "startIn")]
fn start_in_shim(this: &OpenFilePickerOptions, val: &::wasm_bindgen::JsValue);
#[wasm_bindgen(method, setter = "types")]
fn types_shim(this: &OpenFilePickerOptions, val: &::wasm_bindgen::JsValue);
#[wasm_bindgen(method, setter = "multiple")]
fn multiple_shim(this: &OpenFilePickerOptions, val: bool);
}
#[cfg(web_sys_unstable_apis)]
impl OpenFilePickerOptions {
#[doc = "Construct a new `OpenFilePickerOptions`."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn new() -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `excludeAcceptAllOption` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn exclude_accept_all_option(&mut self, val: bool) -> &mut Self {
self.exclude_accept_all_option_shim(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `id` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn id(&mut self, val: &str) -> &mut Self {
self.id_shim(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `startIn` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn start_in(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.start_in_shim(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `types` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.types_shim(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `multiple` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `OpenFilePickerOptions`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn multiple(&mut self, val: bool) -> &mut Self {
self.multiple_shim(val);
self
}
}
#[cfg(web_sys_unstable_apis)]
impl Default for OpenFilePickerOptions {
fn default() -> Self {
Self::new()
}
}