Skip to main content

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