objc2_intents/generated/
INPaymentMethodType.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INPaymentMethodType(pub NSInteger);
12impl INPaymentMethodType {
13 #[doc(alias = "INPaymentMethodTypeUnknown")]
14 pub const Unknown: Self = Self(0);
15 #[doc(alias = "INPaymentMethodTypeChecking")]
16 pub const Checking: Self = Self(1);
17 #[doc(alias = "INPaymentMethodTypeSavings")]
18 pub const Savings: Self = Self(2);
19 #[doc(alias = "INPaymentMethodTypeBrokerage")]
20 pub const Brokerage: Self = Self(3);
21 #[doc(alias = "INPaymentMethodTypeDebit")]
22 pub const Debit: Self = Self(4);
23 #[doc(alias = "INPaymentMethodTypeCredit")]
24 pub const Credit: Self = Self(5);
25 #[doc(alias = "INPaymentMethodTypePrepaid")]
26 pub const Prepaid: Self = Self(6);
27 #[doc(alias = "INPaymentMethodTypeStore")]
28 pub const Store: Self = Self(7);
29 #[doc(alias = "INPaymentMethodTypeApplePay")]
30 pub const ApplePay: Self = Self(8);
31}
32
33unsafe impl Encode for INPaymentMethodType {
34 const ENCODING: Encoding = NSInteger::ENCODING;
35}
36
37unsafe impl RefEncode for INPaymentMethodType {
38 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
39}