]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys-0.28.0/src/Windows/ApplicationModel/Payments/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / ApplicationModel / Payments / mod.rs
CommitLineData
064997fb
FG
1#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2#[cfg(feature = "ApplicationModel_Payments_Provider")]
3pub mod Provider;
4#[link(name = "windows")]
5extern "system" {}
6pub type PaymentAddress = *mut ::core::ffi::c_void;
7pub type PaymentCanMakePaymentResult = *mut ::core::ffi::c_void;
8#[repr(transparent)]
9pub struct PaymentCanMakePaymentResultStatus(pub i32);
10impl PaymentCanMakePaymentResultStatus {
11 pub const Unknown: Self = Self(0i32);
12 pub const Yes: Self = Self(1i32);
13 pub const No: Self = Self(2i32);
14 pub const NotAllowed: Self = Self(3i32);
15 pub const UserNotSignedIn: Self = Self(4i32);
16 pub const SpecifiedPaymentMethodIdsNotSupported: Self = Self(5i32);
17 pub const NoQualifyingCardOnFile: Self = Self(6i32);
18}
19impl ::core::marker::Copy for PaymentCanMakePaymentResultStatus {}
20impl ::core::clone::Clone for PaymentCanMakePaymentResultStatus {
21 fn clone(&self) -> Self {
22 *self
23 }
24}
25pub type PaymentCurrencyAmount = *mut ::core::ffi::c_void;
26pub type PaymentDetails = *mut ::core::ffi::c_void;
27pub type PaymentDetailsModifier = *mut ::core::ffi::c_void;
28pub type PaymentItem = *mut ::core::ffi::c_void;
29pub type PaymentMediator = *mut ::core::ffi::c_void;
30pub type PaymentMerchantInfo = *mut ::core::ffi::c_void;
31pub type PaymentMethodData = *mut ::core::ffi::c_void;
32#[repr(transparent)]
33pub struct PaymentOptionPresence(pub i32);
34impl PaymentOptionPresence {
35 pub const None: Self = Self(0i32);
36 pub const Optional: Self = Self(1i32);
37 pub const Required: Self = Self(2i32);
38}
39impl ::core::marker::Copy for PaymentOptionPresence {}
40impl ::core::clone::Clone for PaymentOptionPresence {
41 fn clone(&self) -> Self {
42 *self
43 }
44}
45pub type PaymentOptions = *mut ::core::ffi::c_void;
46pub type PaymentRequest = *mut ::core::ffi::c_void;
47#[repr(transparent)]
48pub struct PaymentRequestChangeKind(pub i32);
49impl PaymentRequestChangeKind {
50 pub const ShippingOption: Self = Self(0i32);
51 pub const ShippingAddress: Self = Self(1i32);
52}
53impl ::core::marker::Copy for PaymentRequestChangeKind {}
54impl ::core::clone::Clone for PaymentRequestChangeKind {
55 fn clone(&self) -> Self {
56 *self
57 }
58}
59pub type PaymentRequestChangedArgs = *mut ::core::ffi::c_void;
60pub type PaymentRequestChangedHandler = *mut ::core::ffi::c_void;
61pub type PaymentRequestChangedResult = *mut ::core::ffi::c_void;
62#[repr(transparent)]
63pub struct PaymentRequestCompletionStatus(pub i32);
64impl PaymentRequestCompletionStatus {
65 pub const Succeeded: Self = Self(0i32);
66 pub const Failed: Self = Self(1i32);
67 pub const Unknown: Self = Self(2i32);
68}
69impl ::core::marker::Copy for PaymentRequestCompletionStatus {}
70impl ::core::clone::Clone for PaymentRequestCompletionStatus {
71 fn clone(&self) -> Self {
72 *self
73 }
74}
75#[repr(transparent)]
76pub struct PaymentRequestStatus(pub i32);
77impl PaymentRequestStatus {
78 pub const Succeeded: Self = Self(0i32);
79 pub const Failed: Self = Self(1i32);
80 pub const Canceled: Self = Self(2i32);
81}
82impl ::core::marker::Copy for PaymentRequestStatus {}
83impl ::core::clone::Clone for PaymentRequestStatus {
84 fn clone(&self) -> Self {
85 *self
86 }
87}
88pub type PaymentRequestSubmitResult = *mut ::core::ffi::c_void;
89pub type PaymentResponse = *mut ::core::ffi::c_void;
90pub type PaymentShippingOption = *mut ::core::ffi::c_void;
91#[repr(transparent)]
92pub struct PaymentShippingType(pub i32);
93impl PaymentShippingType {
94 pub const Shipping: Self = Self(0i32);
95 pub const Delivery: Self = Self(1i32);
96 pub const Pickup: Self = Self(2i32);
97}
98impl ::core::marker::Copy for PaymentShippingType {}
99impl ::core::clone::Clone for PaymentShippingType {
100 fn clone(&self) -> Self {
101 *self
102 }
103}
104pub type PaymentToken = *mut ::core::ffi::c_void;