Skip to main content

web_sys/features/
gen_ClipboardUnsanitizedFormats.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ClipboardUnsanitizedFormats)]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `ClipboardUnsanitizedFormats` dictionary."]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"]
13    #[doc = ""]
14    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
16    pub type ClipboardUnsanitizedFormats;
17    #[cfg(web_sys_unstable_apis)]
18    #[doc = "Get the `unsanitized` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"]
21    #[doc = ""]
22    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24    #[wasm_bindgen(method, getter = "unsanitized")]
25    pub fn get_unsanitized(
26        this: &ClipboardUnsanitizedFormats,
27    ) -> Option<::js_sys::Array<::js_sys::JsString>>;
28    #[cfg(web_sys_unstable_apis)]
29    #[doc = "Change the `unsanitized` field of this object."]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"]
32    #[doc = ""]
33    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35    #[wasm_bindgen(method, setter = "unsanitized")]
36    pub fn set_unsanitized(this: &ClipboardUnsanitizedFormats, val: &[::js_sys::JsString]);
37}
38#[cfg(web_sys_unstable_apis)]
39impl ClipboardUnsanitizedFormats {
40    #[doc = "Construct a new `ClipboardUnsanitizedFormats`."]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `ClipboardUnsanitizedFormats`*"]
43    #[doc = ""]
44    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
45    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
46    pub fn new() -> Self {
47        #[allow(unused_mut)]
48        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
49        ret
50    }
51    #[cfg(web_sys_unstable_apis)]
52    #[deprecated = "Use `set_unsanitized()` instead."]
53    pub fn unsanitized(&mut self, val: &[::js_sys::JsString]) -> &mut Self {
54        self.set_unsanitized(val);
55        self
56    }
57}
58#[cfg(web_sys_unstable_apis)]
59impl Default for ClipboardUnsanitizedFormats {
60    fn default() -> Self {
61        Self::new()
62    }
63}