web_sys/features/
gen_ConstrainDomStringParameters.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ConstrainDOMStringParameters)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `ConstrainDomStringParameters` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
12 pub type ConstrainDomStringParameters;
13 #[doc = "Get the `exact` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
16 #[wasm_bindgen(method, getter = "exact")]
17 pub fn get_exact(this: &ConstrainDomStringParameters) -> ::wasm_bindgen::JsValue;
18 #[doc = "Change the `exact` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
21 #[wasm_bindgen(method, setter = "exact")]
22 pub fn set_exact(this: &ConstrainDomStringParameters, val: &::wasm_bindgen::JsValue);
23 #[doc = "Change the `exact` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
26 #[wasm_bindgen(method, setter = "exact")]
27 pub fn set_exact_str(this: &ConstrainDomStringParameters, val: &str);
28 #[doc = "Change the `exact` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
31 #[wasm_bindgen(method, setter = "exact")]
32 pub fn set_exact_str_sequence(
33 this: &ConstrainDomStringParameters,
34 val: &::wasm_bindgen::JsValue,
35 );
36 #[doc = "Get the `ideal` field of this object."]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
39 #[wasm_bindgen(method, getter = "ideal")]
40 pub fn get_ideal(this: &ConstrainDomStringParameters) -> ::wasm_bindgen::JsValue;
41 #[doc = "Change the `ideal` field of this object."]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
44 #[wasm_bindgen(method, setter = "ideal")]
45 pub fn set_ideal(this: &ConstrainDomStringParameters, val: &::wasm_bindgen::JsValue);
46 #[doc = "Change the `ideal` field of this object."]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
49 #[wasm_bindgen(method, setter = "ideal")]
50 pub fn set_ideal_str(this: &ConstrainDomStringParameters, val: &str);
51 #[doc = "Change the `ideal` field of this object."]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
54 #[wasm_bindgen(method, setter = "ideal")]
55 pub fn set_ideal_str_sequence(
56 this: &ConstrainDomStringParameters,
57 val: &::wasm_bindgen::JsValue,
58 );
59}
60impl ConstrainDomStringParameters {
61 #[doc = "Construct a new `ConstrainDomStringParameters`."]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"]
64 pub fn new() -> Self {
65 #[allow(unused_mut)]
66 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
67 ret
68 }
69 #[deprecated = "Use `set_exact()` instead."]
70 pub fn exact(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
71 self.set_exact(val);
72 self
73 }
74 #[deprecated = "Use `set_ideal()` instead."]
75 pub fn ideal(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
76 self.set_ideal(val);
77 self
78 }
79}
80impl Default for ConstrainDomStringParameters {
81 fn default() -> Self {
82 Self::new()
83 }
84}