Skip to main content

web_sys/features/
gen_CssImportRule.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "CssRule",
9        extends = "::js_sys::Object",
10        js_name = "CSSImportRule",
11        typescript_type = "CSSImportRule"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `CssImportRule` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"]
19    pub type CssImportRule;
20    #[wasm_bindgen(method, getter, js_class = "CSSImportRule", js_name = "href")]
21    #[doc = "Getter for the `href` field of this object."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/href)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"]
26    pub fn href(this: &CssImportRule) -> ::alloc::string::String;
27    #[cfg(feature = "MediaList")]
28    #[wasm_bindgen(method, getter, js_class = "CSSImportRule", js_name = "media")]
29    #[doc = "Getter for the `media` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/media)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `CssImportRule`, `MediaList`*"]
34    pub fn media(this: &CssImportRule) -> Option<MediaList>;
35    #[cfg(feature = "CssStyleSheet")]
36    #[wasm_bindgen(method, getter, js_class = "CSSImportRule", js_name = "styleSheet")]
37    #[doc = "Getter for the `styleSheet` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/styleSheet)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `CssImportRule`, `CssStyleSheet`*"]
42    pub fn style_sheet(this: &CssImportRule) -> Option<CssStyleSheet>;
43}