]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[cfg(feature = "Security_Credentials_UI")] |
2 | pub mod UI; | |
3 | pub type IWebAccount = *mut ::core::ffi::c_void; | |
4 | pub type KeyCredential = *mut ::core::ffi::c_void; | |
5 | pub type KeyCredentialAttestationResult = *mut ::core::ffi::c_void; | |
04454e1e | 6 | #[doc = "*Required features: `\"Security_Credentials\"`*"] |
5e7ed085 FG |
7 | #[repr(transparent)] |
8 | pub struct KeyCredentialAttestationStatus(pub i32); | |
9 | impl KeyCredentialAttestationStatus { | |
10 | pub const Success: Self = Self(0i32); | |
11 | pub const UnknownError: Self = Self(1i32); | |
12 | pub const NotSupported: Self = Self(2i32); | |
13 | pub const TemporaryFailure: Self = Self(3i32); | |
14 | } | |
15 | impl ::core::marker::Copy for KeyCredentialAttestationStatus {} | |
16 | impl ::core::clone::Clone for KeyCredentialAttestationStatus { | |
17 | fn clone(&self) -> Self { | |
18 | *self | |
19 | } | |
20 | } | |
04454e1e | 21 | #[doc = "*Required features: `\"Security_Credentials\"`*"] |
5e7ed085 FG |
22 | #[repr(transparent)] |
23 | pub struct KeyCredentialCreationOption(pub i32); | |
24 | impl KeyCredentialCreationOption { | |
25 | pub const ReplaceExisting: Self = Self(0i32); | |
26 | pub const FailIfExists: Self = Self(1i32); | |
27 | } | |
28 | impl ::core::marker::Copy for KeyCredentialCreationOption {} | |
29 | impl ::core::clone::Clone for KeyCredentialCreationOption { | |
30 | fn clone(&self) -> Self { | |
31 | *self | |
32 | } | |
33 | } | |
34 | pub type KeyCredentialOperationResult = *mut ::core::ffi::c_void; | |
35 | pub type KeyCredentialRetrievalResult = *mut ::core::ffi::c_void; | |
04454e1e | 36 | #[doc = "*Required features: `\"Security_Credentials\"`*"] |
5e7ed085 FG |
37 | #[repr(transparent)] |
38 | pub struct KeyCredentialStatus(pub i32); | |
39 | impl KeyCredentialStatus { | |
40 | pub const Success: Self = Self(0i32); | |
41 | pub const UnknownError: Self = Self(1i32); | |
42 | pub const NotFound: Self = Self(2i32); | |
43 | pub const UserCanceled: Self = Self(3i32); | |
44 | pub const UserPrefersPassword: Self = Self(4i32); | |
45 | pub const CredentialAlreadyExists: Self = Self(5i32); | |
46 | pub const SecurityDeviceLocked: Self = Self(6i32); | |
47 | } | |
48 | impl ::core::marker::Copy for KeyCredentialStatus {} | |
49 | impl ::core::clone::Clone for KeyCredentialStatus { | |
50 | fn clone(&self) -> Self { | |
51 | *self | |
52 | } | |
53 | } | |
54 | pub type PasswordCredential = *mut ::core::ffi::c_void; | |
55 | pub type PasswordCredentialPropertyStore = *mut ::core::ffi::c_void; | |
56 | pub type PasswordVault = *mut ::core::ffi::c_void; | |
57 | pub type WebAccount = *mut ::core::ffi::c_void; | |
04454e1e | 58 | #[doc = "*Required features: `\"Security_Credentials\"`*"] |
5e7ed085 FG |
59 | #[repr(transparent)] |
60 | pub struct WebAccountPictureSize(pub i32); | |
61 | impl WebAccountPictureSize { | |
62 | pub const Size64x64: Self = Self(64i32); | |
63 | pub const Size208x208: Self = Self(208i32); | |
64 | pub const Size424x424: Self = Self(424i32); | |
65 | pub const Size1080x1080: Self = Self(1080i32); | |
66 | } | |
67 | impl ::core::marker::Copy for WebAccountPictureSize {} | |
68 | impl ::core::clone::Clone for WebAccountPictureSize { | |
69 | fn clone(&self) -> Self { | |
70 | *self | |
71 | } | |
72 | } | |
73 | pub type WebAccountProvider = *mut ::core::ffi::c_void; | |
04454e1e | 74 | #[doc = "*Required features: `\"Security_Credentials\"`*"] |
5e7ed085 FG |
75 | #[repr(transparent)] |
76 | pub struct WebAccountState(pub i32); | |
77 | impl WebAccountState { | |
78 | pub const None: Self = Self(0i32); | |
79 | pub const Connected: Self = Self(1i32); | |
80 | pub const Error: Self = Self(2i32); | |
81 | } | |
82 | impl ::core::marker::Copy for WebAccountState {} | |
83 | impl ::core::clone::Clone for WebAccountState { | |
84 | fn clone(&self) -> Self { | |
85 | *self | |
86 | } | |
87 | } |