objc2_intents/generated/
INAccountType.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// [Apple's documentation](https://developer.apple.com/documentation/intents/inaccounttype?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INAccountType(pub NSInteger);
12impl INAccountType {
13    #[doc(alias = "INAccountTypeUnknown")]
14    pub const Unknown: Self = Self(0);
15    #[doc(alias = "INAccountTypeChecking")]
16    pub const Checking: Self = Self(1);
17    #[doc(alias = "INAccountTypeCredit")]
18    pub const Credit: Self = Self(2);
19    #[doc(alias = "INAccountTypeDebit")]
20    pub const Debit: Self = Self(3);
21    #[doc(alias = "INAccountTypeInvestment")]
22    pub const Investment: Self = Self(4);
23    #[doc(alias = "INAccountTypeMortgage")]
24    pub const Mortgage: Self = Self(5);
25    #[doc(alias = "INAccountTypePrepaid")]
26    pub const Prepaid: Self = Self(6);
27    #[doc(alias = "INAccountTypeSaving")]
28    pub const Saving: Self = Self(7);
29}
30
31unsafe impl Encode for INAccountType {
32    const ENCODING: Encoding = NSInteger::ENCODING;
33}
34
35unsafe impl RefEncode for INAccountType {
36    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
37}