Skip to main content

web_sys/features/
gen_MimeType.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 = "::js_sys::Object",
9        js_name = "MimeType",
10        typescript_type = "MimeType"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `MimeType` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `MimeType`*"]
18    pub type MimeType;
19    #[wasm_bindgen(method, getter, js_class = "MimeType", js_name = "description")]
20    #[doc = "Getter for the `description` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/description)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `MimeType`*"]
25    pub fn description(this: &MimeType) -> ::alloc::string::String;
26    #[cfg(feature = "Plugin")]
27    #[wasm_bindgen(method, getter, js_class = "MimeType", js_name = "enabledPlugin")]
28    #[doc = "Getter for the `enabledPlugin` field of this object."]
29    #[doc = ""]
30    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/enabledPlugin)"]
31    #[doc = ""]
32    #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"]
33    pub fn enabled_plugin(this: &MimeType) -> Option<Plugin>;
34    #[wasm_bindgen(method, getter, js_class = "MimeType", js_name = "suffixes")]
35    #[doc = "Getter for the `suffixes` field of this object."]
36    #[doc = ""]
37    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/suffixes)"]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `MimeType`*"]
40    pub fn suffixes(this: &MimeType) -> ::alloc::string::String;
41    #[wasm_bindgen(method, getter, js_class = "MimeType", js_name = "type")]
42    #[doc = "Getter for the `type` field of this object."]
43    #[doc = ""]
44    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/type)"]
45    #[doc = ""]
46    #[doc = "*This API requires the following crate features to be activated: `MimeType`*"]
47    pub fn type_(this: &MimeType) -> ::alloc::string::String;
48}