objc2_identity_lookup/generated/
ILMessageFilterAction.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/// Describes an action to take in response to a received message.
8///
9/// See also [Apple's documentation](https://developer.apple.com/documentation/identitylookup/ilmessagefilteraction?language=objc)
10// NS_ENUM
11#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct ILMessageFilterAction(pub NSInteger);
14impl ILMessageFilterAction {
15    /// Insufficient information to determine an action to take. In a query response, has the effect of allowing the message to be shown normally.
16    #[doc(alias = "ILMessageFilterActionNone")]
17    pub const None: Self = Self(0);
18    /// Allow the message to be shown normally.
19    #[doc(alias = "ILMessageFilterActionAllow")]
20    pub const Allow: Self = Self(1);
21    /// Prevent the message from being shown normally, filtered as Junk message.
22    #[doc(alias = "ILMessageFilterActionJunk")]
23    pub const Junk: Self = Self(2);
24    /// Prevent the message from being shown normally, filtered as Junk message.
25    #[doc(alias = "ILMessageFilterActionFilter")]
26    #[deprecated]
27    pub const Filter: Self = Self(ILMessageFilterAction::Junk.0);
28    /// Prevent the message from being shown normally, filtered as Promotional message.
29    #[doc(alias = "ILMessageFilterActionPromotion")]
30    pub const Promotion: Self = Self(3);
31    /// Prevent the message from being shown normally, filtered as Transactional message.
32    #[doc(alias = "ILMessageFilterActionTransaction")]
33    pub const Transaction: Self = Self(4);
34}
35
36unsafe impl Encode for ILMessageFilterAction {
37    const ENCODING: Encoding = NSInteger::ENCODING;
38}
39
40unsafe impl RefEncode for ILMessageFilterAction {
41    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
42}
43
44/// [Apple's documentation](https://developer.apple.com/documentation/identitylookup/ilmessagefiltersubaction?language=objc)
45// NS_ENUM
46#[repr(transparent)]
47#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
48pub struct ILMessageFilterSubAction(pub NSInteger);
49impl ILMessageFilterSubAction {
50    /// Insufficient information to determine an action to take. In a query response, has the effect of allowing the message to be shown normally.
51    #[doc(alias = "ILMessageFilterSubActionNone")]
52    pub const None: Self = Self(0);
53    /// Prevent the message from being shown normally, filtered as Other message.
54    #[doc(alias = "ILMessageFilterSubActionTransactionalOthers")]
55    pub const TransactionalOthers: Self = Self(10000);
56    /// Prevent the message from being shown normally, filtered as Finance message.
57    #[doc(alias = "ILMessageFilterSubActionTransactionalFinance")]
58    pub const TransactionalFinance: Self = Self(10001);
59    /// Prevent the message from being shown normally, filtered as Orders (eCommerce) message.
60    #[doc(alias = "ILMessageFilterSubActionTransactionalOrders")]
61    pub const TransactionalOrders: Self = Self(10002);
62    /// Prevent the message from being shown normally, filtered as Reminder message.
63    #[doc(alias = "ILMessageFilterSubActionTransactionalReminders")]
64    pub const TransactionalReminders: Self = Self(10003);
65    /// Prevent the message from being shown normally, filtered as Health message.
66    #[doc(alias = "ILMessageFilterSubActionTransactionalHealth")]
67    pub const TransactionalHealth: Self = Self(10004);
68    /// Prevent the message from being shown normally, filtered as Weather message.
69    #[doc(alias = "ILMessageFilterSubActionTransactionalWeather")]
70    pub const TransactionalWeather: Self = Self(10005);
71    /// Prevent the message from being shown normally, filtered as Carrier message.
72    #[doc(alias = "ILMessageFilterSubActionTransactionalCarrier")]
73    pub const TransactionalCarrier: Self = Self(10006);
74    /// Prevent the message from being shown normally, filtered as Rewards message.
75    #[doc(alias = "ILMessageFilterSubActionTransactionalRewards")]
76    pub const TransactionalRewards: Self = Self(10007);
77    /// Prevent the message from being shown normally, filtered as Government message.
78    #[doc(alias = "ILMessageFilterSubActionTransactionalPublicServices")]
79    pub const TransactionalPublicServices: Self = Self(10008);
80    /// Prevent the message from being shown normally, filtered as Others message.
81    #[doc(alias = "ILMessageFilterSubActionPromotionalOthers")]
82    pub const PromotionalOthers: Self = Self(20000);
83    /// Prevent the message from being shown normally, filtered as Offers message.
84    #[doc(alias = "ILMessageFilterSubActionPromotionalOffers")]
85    pub const PromotionalOffers: Self = Self(20001);
86    /// Prevent the message from being shown normally, filtered as Coupons message.
87    #[doc(alias = "ILMessageFilterSubActionPromotionalCoupons")]
88    pub const PromotionalCoupons: Self = Self(20002);
89}
90
91unsafe impl Encode for ILMessageFilterSubAction {
92    const ENCODING: Encoding = NSInteger::ENCODING;
93}
94
95unsafe impl RefEncode for ILMessageFilterSubAction {
96    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
97}