]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Security/Credentials/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Security / Credentials / mod.rs
CommitLineData
5e7ed085
FG
1#[cfg(feature = "Security_Credentials_UI")]
2pub mod UI;
3pub type IWebAccount = *mut ::core::ffi::c_void;
4pub type KeyCredential = *mut ::core::ffi::c_void;
5pub type KeyCredentialAttestationResult = *mut ::core::ffi::c_void;
04454e1e 6#[doc = "*Required features: `\"Security_Credentials\"`*"]
5e7ed085
FG
7#[repr(transparent)]
8pub struct KeyCredentialAttestationStatus(pub i32);
9impl 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}
15impl ::core::marker::Copy for KeyCredentialAttestationStatus {}
16impl ::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)]
23pub struct KeyCredentialCreationOption(pub i32);
24impl KeyCredentialCreationOption {
25 pub const ReplaceExisting: Self = Self(0i32);
26 pub const FailIfExists: Self = Self(1i32);
27}
28impl ::core::marker::Copy for KeyCredentialCreationOption {}
29impl ::core::clone::Clone for KeyCredentialCreationOption {
30 fn clone(&self) -> Self {
31 *self
32 }
33}
34pub type KeyCredentialOperationResult = *mut ::core::ffi::c_void;
35pub type KeyCredentialRetrievalResult = *mut ::core::ffi::c_void;
04454e1e 36#[doc = "*Required features: `\"Security_Credentials\"`*"]
5e7ed085
FG
37#[repr(transparent)]
38pub struct KeyCredentialStatus(pub i32);
39impl 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}
48impl ::core::marker::Copy for KeyCredentialStatus {}
49impl ::core::clone::Clone for KeyCredentialStatus {
50 fn clone(&self) -> Self {
51 *self
52 }
53}
54pub type PasswordCredential = *mut ::core::ffi::c_void;
55pub type PasswordCredentialPropertyStore = *mut ::core::ffi::c_void;
56pub type PasswordVault = *mut ::core::ffi::c_void;
57pub type WebAccount = *mut ::core::ffi::c_void;
04454e1e 58#[doc = "*Required features: `\"Security_Credentials\"`*"]
5e7ed085
FG
59#[repr(transparent)]
60pub struct WebAccountPictureSize(pub i32);
61impl 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}
67impl ::core::marker::Copy for WebAccountPictureSize {}
68impl ::core::clone::Clone for WebAccountPictureSize {
69 fn clone(&self) -> Self {
70 *self
71 }
72}
73pub type WebAccountProvider = *mut ::core::ffi::c_void;
04454e1e 74#[doc = "*Required features: `\"Security_Credentials\"`*"]
5e7ed085
FG
75#[repr(transparent)]
76pub struct WebAccountState(pub i32);
77impl WebAccountState {
78 pub const None: Self = Self(0i32);
79 pub const Connected: Self = Self(1i32);
80 pub const Error: Self = Self(2i32);
81}
82impl ::core::marker::Copy for WebAccountState {}
83impl ::core::clone::Clone for WebAccountState {
84 fn clone(&self) -> Self {
85 *self
86 }
87}