objc2_intents/generated/
INMessageAttribute.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INMessageAttribute(pub NSInteger);
12impl INMessageAttribute {
13 #[doc(alias = "INMessageAttributeUnknown")]
14 pub const Unknown: Self = Self(0);
15 #[doc(alias = "INMessageAttributeRead")]
16 pub const Read: Self = Self(1);
17 #[doc(alias = "INMessageAttributeUnread")]
18 pub const Unread: Self = Self(2);
19 #[doc(alias = "INMessageAttributeFlagged")]
20 pub const Flagged: Self = Self(3);
21 #[doc(alias = "INMessageAttributeUnflagged")]
22 pub const Unflagged: Self = Self(4);
23 #[doc(alias = "INMessageAttributePlayed")]
24 pub const Played: Self = Self(5);
25}
26
27unsafe impl Encode for INMessageAttribute {
28 const ENCODING: Encoding = NSInteger::ENCODING;
29}
30
31unsafe impl RefEncode for INMessageAttribute {
32 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
33}