web_sys/features/
gen_ValidityState.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 = "ValidityState",
10 typescript_type = "ValidityState"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `ValidityState` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
18 pub type ValidityState;
19 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "valueMissing")]
20 #[doc = "Getter for the `valueMissing` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valueMissing)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
25 pub fn value_missing(this: &ValidityState) -> bool;
26 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "typeMismatch")]
27 #[doc = "Getter for the `typeMismatch` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/typeMismatch)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
32 pub fn type_mismatch(this: &ValidityState) -> bool;
33 #[wasm_bindgen(
34 method,
35 getter,
36 js_class = "ValidityState",
37 js_name = "patternMismatch"
38 )]
39 #[doc = "Getter for the `patternMismatch` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/patternMismatch)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
44 pub fn pattern_mismatch(this: &ValidityState) -> bool;
45 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "tooLong")]
46 #[doc = "Getter for the `tooLong` field of this object."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooLong)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
51 pub fn too_long(this: &ValidityState) -> bool;
52 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "tooShort")]
53 #[doc = "Getter for the `tooShort` field of this object."]
54 #[doc = ""]
55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooShort)"]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
58 pub fn too_short(this: &ValidityState) -> bool;
59 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "rangeUnderflow")]
60 #[doc = "Getter for the `rangeUnderflow` field of this object."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeUnderflow)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
65 pub fn range_underflow(this: &ValidityState) -> bool;
66 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "rangeOverflow")]
67 #[doc = "Getter for the `rangeOverflow` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeOverflow)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
72 pub fn range_overflow(this: &ValidityState) -> bool;
73 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "stepMismatch")]
74 #[doc = "Getter for the `stepMismatch` field of this object."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/stepMismatch)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
79 pub fn step_mismatch(this: &ValidityState) -> bool;
80 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "badInput")]
81 #[doc = "Getter for the `badInput` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/badInput)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
86 pub fn bad_input(this: &ValidityState) -> bool;
87 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "customError")]
88 #[doc = "Getter for the `customError` field of this object."]
89 #[doc = ""]
90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/customError)"]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
93 pub fn custom_error(this: &ValidityState) -> bool;
94 #[wasm_bindgen(method, getter, js_class = "ValidityState", js_name = "valid")]
95 #[doc = "Getter for the `valid` field of this object."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valid)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"]
100 pub fn valid(this: &ValidityState) -> bool;
101}