objc2_intents/generated/
INAmountType.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/inamounttype?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INAmountType(pub NSInteger);
12impl INAmountType {
13    #[doc(alias = "INAmountTypeUnknown")]
14    pub const Unknown: Self = Self(0);
15    #[doc(alias = "INAmountTypeMinimumDue")]
16    pub const MinimumDue: Self = Self(1);
17    #[doc(alias = "INAmountTypeAmountDue")]
18    pub const AmountDue: Self = Self(2);
19    #[doc(alias = "INAmountTypeCurrentBalance")]
20    pub const CurrentBalance: Self = Self(3);
21    #[doc(alias = "INAmountTypeMaximumTransferAmount")]
22    pub const MaximumTransferAmount: Self = Self(4);
23    #[doc(alias = "INAmountTypeMinimumTransferAmount")]
24    pub const MinimumTransferAmount: Self = Self(5);
25    #[doc(alias = "INAmountTypeStatementBalance")]
26    pub const StatementBalance: Self = Self(6);
27}
28
29unsafe impl Encode for INAmountType {
30    const ENCODING: Encoding = NSInteger::ENCODING;
31}
32
33unsafe impl RefEncode for INAmountType {
34    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
35}