objc2_intents/generated/
INRidePhase.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/inridephase?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INRidePhase(pub NSInteger);
12impl INRidePhase {
13    #[doc(alias = "INRidePhaseUnknown")]
14    pub const Unknown: Self = Self(0);
15    #[doc(alias = "INRidePhaseReceived")]
16    pub const Received: Self = Self(1);
17    #[doc(alias = "INRidePhaseConfirmed")]
18    pub const Confirmed: Self = Self(2);
19    #[doc(alias = "INRidePhaseOngoing")]
20    pub const Ongoing: Self = Self(3);
21    #[doc(alias = "INRidePhaseCompleted")]
22    pub const Completed: Self = Self(4);
23    #[doc(alias = "INRidePhaseApproachingPickup")]
24    pub const ApproachingPickup: Self = Self(5);
25    #[doc(alias = "INRidePhasePickup")]
26    pub const Pickup: Self = Self(6);
27}
28
29unsafe impl Encode for INRidePhase {
30    const ENCODING: Encoding = NSInteger::ENCODING;
31}
32
33unsafe impl RefEncode for INRidePhase {
34    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
35}