web_sys/features/
gen_PublicKeyCredentialUserEntity.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PublicKeyCredentialUserEntity)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `PublicKeyCredentialUserEntity` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
12 pub type PublicKeyCredentialUserEntity;
13 #[doc = "Get the `icon` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
16 #[deprecated]
17 #[wasm_bindgen(method, getter = "icon")]
18 pub fn get_icon(this: &PublicKeyCredentialUserEntity) -> Option<::alloc::string::String>;
19 #[doc = "Change the `icon` field of this object."]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
22 #[deprecated]
23 #[wasm_bindgen(method, setter = "icon")]
24 pub fn set_icon(this: &PublicKeyCredentialUserEntity, val: &str);
25 #[doc = "Get the `name` field of this object."]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
28 #[wasm_bindgen(method, getter = "name")]
29 pub fn get_name(this: &PublicKeyCredentialUserEntity) -> ::alloc::string::String;
30 #[doc = "Change the `name` field of this object."]
31 #[doc = ""]
32 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
33 #[wasm_bindgen(method, setter = "name")]
34 pub fn set_name(this: &PublicKeyCredentialUserEntity, val: &str);
35 #[doc = "Get the `displayName` field of this object."]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
38 #[wasm_bindgen(method, getter = "displayName")]
39 pub fn get_display_name(this: &PublicKeyCredentialUserEntity) -> ::alloc::string::String;
40 #[doc = "Change the `displayName` field of this object."]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
43 #[wasm_bindgen(method, setter = "displayName")]
44 pub fn set_display_name(this: &PublicKeyCredentialUserEntity, val: &str);
45 #[doc = "Get the `id` field of this object."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
48 #[wasm_bindgen(method, getter = "id")]
49 pub fn get_id(this: &PublicKeyCredentialUserEntity) -> ::js_sys::Object;
50 #[doc = "Change the `id` field of this object."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
53 #[wasm_bindgen(method, setter = "id")]
54 pub fn set_id(this: &PublicKeyCredentialUserEntity, val: &::js_sys::Object);
55}
56impl PublicKeyCredentialUserEntity {
57 #[doc = "Construct a new `PublicKeyCredentialUserEntity`."]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"]
60 pub fn new(name: &str, display_name: &str, id: &::js_sys::Object) -> Self {
61 #[allow(unused_mut)]
62 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
63 ret.set_name(name);
64 ret.set_display_name(display_name);
65 ret.set_id(id);
66 ret
67 }
68 #[deprecated = "Use `set_icon()` instead."]
69 pub fn icon(&mut self, val: &str) -> &mut Self {
70 self.set_icon(val);
71 self
72 }
73 #[deprecated = "Use `set_name()` instead."]
74 pub fn name(&mut self, val: &str) -> &mut Self {
75 self.set_name(val);
76 self
77 }
78 #[deprecated = "Use `set_display_name()` instead."]
79 pub fn display_name(&mut self, val: &str) -> &mut Self {
80 self.set_display_name(val);
81 self
82 }
83 #[deprecated = "Use `set_id()` instead."]
84 pub fn id(&mut self, val: &::js_sys::Object) -> &mut Self {
85 self.set_id(val);
86 self
87 }
88}