maxcountryman_web_sys/features/
gen_CryptoKey.rs

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