1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CredentialsContainer , typescript_type = "CredentialsContainer")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `CredentialsContainer` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"]
    pub type CredentialsContainer;
    # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = create)]
    #[doc = "The `create()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"]
    pub fn create(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>;
    #[cfg(feature = "CredentialCreationOptions")]
    # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = create)]
    #[doc = "The `create()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`, `CredentialsContainer`*"]
    pub fn create_with_options(
        this: &CredentialsContainer,
        options: &CredentialCreationOptions,
    ) -> Result<::js_sys::Promise, JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = get)]
    #[doc = "The `get()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"]
    pub fn get(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>;
    #[cfg(feature = "CredentialRequestOptions")]
    # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = get)]
    #[doc = "The `get()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`, `CredentialsContainer`*"]
    pub fn get_with_options(
        this: &CredentialsContainer,
        options: &CredentialRequestOptions,
    ) -> Result<::js_sys::Promise, JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = preventSilentAccess)]
    #[doc = "The `preventSilentAccess()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/preventSilentAccess)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"]
    pub fn prevent_silent_access(this: &CredentialsContainer)
        -> Result<::js_sys::Promise, JsValue>;
    #[cfg(feature = "Credential")]
    # [wasm_bindgen (catch , method , structural , js_class = "CredentialsContainer" , js_name = store)]
    #[doc = "The `store()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/store)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `Credential`, `CredentialsContainer`*"]
    pub fn store(
        this: &CredentialsContainer,
        credential: &Credential,
    ) -> Result<::js_sys::Promise, JsValue>;
}