maxcountryman_web_sys/features/
gen_SecurityPolicyViolationEvent.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SecurityPolicyViolationEvent , typescript_type = "SecurityPolicyViolationEvent")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `SecurityPolicyViolationEvent` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
13 pub type SecurityPolicyViolationEvent;
14 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = documentURI)]
15 #[doc = "Getter for the `documentURI` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/documentURI)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
20 pub fn document_uri(this: &SecurityPolicyViolationEvent) -> String;
21 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = referrer)]
22 #[doc = "Getter for the `referrer` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/referrer)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
27 pub fn referrer(this: &SecurityPolicyViolationEvent) -> String;
28 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = blockedURI)]
29 #[doc = "Getter for the `blockedURI` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
34 pub fn blocked_uri(this: &SecurityPolicyViolationEvent) -> String;
35 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = violatedDirective)]
36 #[doc = "Getter for the `violatedDirective` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
41 pub fn violated_directive(this: &SecurityPolicyViolationEvent) -> String;
42 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = effectiveDirective)]
43 #[doc = "Getter for the `effectiveDirective` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
48 pub fn effective_directive(this: &SecurityPolicyViolationEvent) -> String;
49 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = originalPolicy)]
50 #[doc = "Getter for the `originalPolicy` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
55 pub fn original_policy(this: &SecurityPolicyViolationEvent) -> String;
56 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sourceFile)]
57 #[doc = "Getter for the `sourceFile` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
62 pub fn source_file(this: &SecurityPolicyViolationEvent) -> String;
63 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sample)]
64 #[doc = "Getter for the `sample` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sample)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
69 pub fn sample(this: &SecurityPolicyViolationEvent) -> String;
70 #[cfg(feature = "SecurityPolicyViolationEventDisposition")]
71 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = disposition)]
72 #[doc = "Getter for the `disposition` field of this object."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/disposition)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`, `SecurityPolicyViolationEventDisposition`*"]
77 pub fn disposition(
78 this: &SecurityPolicyViolationEvent,
79 ) -> SecurityPolicyViolationEventDisposition;
80 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = statusCode)]
81 #[doc = "Getter for the `statusCode` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/statusCode)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
86 pub fn status_code(this: &SecurityPolicyViolationEvent) -> u16;
87 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = lineNumber)]
88 #[doc = "Getter for the `lineNumber` field of this object."]
89 #[doc = ""]
90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)"]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
93 pub fn line_number(this: &SecurityPolicyViolationEvent) -> i32;
94 # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = columnNumber)]
95 #[doc = "Getter for the `columnNumber` field of this object."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
100 pub fn column_number(this: &SecurityPolicyViolationEvent) -> i32;
101 #[wasm_bindgen(catch, constructor, js_class = "SecurityPolicyViolationEvent")]
102 #[doc = "The `new SecurityPolicyViolationEvent(..)` constructor, creating a new instance of `SecurityPolicyViolationEvent`."]
103 #[doc = ""]
104 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/SecurityPolicyViolationEvent)"]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"]
107 pub fn new(type_: &str) -> Result<SecurityPolicyViolationEvent, JsValue>;
108 #[cfg(feature = "SecurityPolicyViolationEventInit")]
109 #[wasm_bindgen(catch, constructor, js_class = "SecurityPolicyViolationEvent")]
110 #[doc = "The `new SecurityPolicyViolationEvent(..)` constructor, creating a new instance of `SecurityPolicyViolationEvent`."]
111 #[doc = ""]
112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/SecurityPolicyViolationEvent)"]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`, `SecurityPolicyViolationEventInit`*"]
115 pub fn new_with_event_init_dict(
116 type_: &str,
117 event_init_dict: &SecurityPolicyViolationEventInit,
118 ) -> Result<SecurityPolicyViolationEvent, JsValue>;
119}