objc2_intents/generated/
INTemporalEventTriggerTypeOptions.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/intemporaleventtriggertypeoptions?language=objc)
8// NS_OPTIONS
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INTemporalEventTriggerTypeOptions(pub NSUInteger);
12bitflags::bitflags! {
13    impl INTemporalEventTriggerTypeOptions: NSUInteger {
14        #[doc(alias = "INTemporalEventTriggerTypeOptionNotScheduled")]
15        const NotScheduled = 1<<0;
16        #[doc(alias = "INTemporalEventTriggerTypeOptionScheduledNonRecurring")]
17        const ScheduledNonRecurring = 1<<1;
18        #[doc(alias = "INTemporalEventTriggerTypeOptionScheduledRecurring")]
19        const ScheduledRecurring = 1<<2;
20    }
21}
22
23unsafe impl Encode for INTemporalEventTriggerTypeOptions {
24    const ENCODING: Encoding = NSUInteger::ENCODING;
25}
26
27unsafe impl RefEncode for INTemporalEventTriggerTypeOptions {
28    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
29}