]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/ApplicationModel/Store/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / ApplicationModel / Store / mod.rs
CommitLineData
5e7ed085
FG
1#[cfg(feature = "ApplicationModel_Store_LicenseManagement")]
2pub mod LicenseManagement;
3#[cfg(feature = "ApplicationModel_Store_Preview")]
4pub mod Preview;
04454e1e 5#[doc = "*Required features: `\"ApplicationModel_Store\"`*"]
5e7ed085
FG
6#[repr(transparent)]
7pub struct FulfillmentResult(pub i32);
8impl FulfillmentResult {
9 pub const Succeeded: Self = Self(0i32);
10 pub const NothingToFulfill: Self = Self(1i32);
11 pub const PurchasePending: Self = Self(2i32);
12 pub const PurchaseReverted: Self = Self(3i32);
13 pub const ServerError: Self = Self(4i32);
14}
15impl ::core::marker::Copy for FulfillmentResult {}
16impl ::core::clone::Clone for FulfillmentResult {
17 fn clone(&self) -> Self {
18 *self
19 }
20}
21pub type LicenseChangedEventHandler = *mut ::core::ffi::c_void;
22pub type LicenseInformation = *mut ::core::ffi::c_void;
23pub type ListingInformation = *mut ::core::ffi::c_void;
24pub type ProductLicense = *mut ::core::ffi::c_void;
25pub type ProductListing = *mut ::core::ffi::c_void;
26pub type ProductPurchaseDisplayProperties = *mut ::core::ffi::c_void;
04454e1e 27#[doc = "*Required features: `\"ApplicationModel_Store\"`*"]
5e7ed085
FG
28#[repr(transparent)]
29pub struct ProductPurchaseStatus(pub i32);
30impl ProductPurchaseStatus {
31 pub const Succeeded: Self = Self(0i32);
32 pub const AlreadyPurchased: Self = Self(1i32);
33 pub const NotFulfilled: Self = Self(2i32);
34 pub const NotPurchased: Self = Self(3i32);
35}
36impl ::core::marker::Copy for ProductPurchaseStatus {}
37impl ::core::clone::Clone for ProductPurchaseStatus {
38 fn clone(&self) -> Self {
39 *self
40 }
41}
04454e1e 42#[doc = "*Required features: `\"ApplicationModel_Store\"`*"]
5e7ed085
FG
43#[repr(transparent)]
44pub struct ProductType(pub i32);
45impl ProductType {
46 pub const Unknown: Self = Self(0i32);
47 pub const Durable: Self = Self(1i32);
48 pub const Consumable: Self = Self(2i32);
49}
50impl ::core::marker::Copy for ProductType {}
51impl ::core::clone::Clone for ProductType {
52 fn clone(&self) -> Self {
53 *self
54 }
55}
56pub type PurchaseResults = *mut ::core::ffi::c_void;
57pub type UnfulfilledConsumable = *mut ::core::ffi::c_void;