objc2_intents/generated/
INDateSearchType.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INDateSearchType(pub NSInteger);
12impl INDateSearchType {
13 #[doc(alias = "INDateSearchTypeUnknown")]
14 pub const Unknown: Self = Self(0);
15 #[doc(alias = "INDateSearchTypeByDueDate")]
16 pub const ByDueDate: Self = Self(1);
17 #[doc(alias = "INDateSearchTypeByModifiedDate")]
18 pub const ByModifiedDate: Self = Self(2);
19 #[doc(alias = "INDateSearchTypeByCreatedDate")]
20 pub const ByCreatedDate: Self = Self(3);
21}
22
23unsafe impl Encode for INDateSearchType {
24 const ENCODING: Encoding = NSInteger::ENCODING;
25}
26
27unsafe impl RefEncode for INDateSearchType {
28 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
29}