objc2_intents/generated/
INCallDestinationType.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/incalldestinationtype?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INCallDestinationType(pub NSInteger);
12impl INCallDestinationType {
13    #[doc(alias = "INCallDestinationTypeUnknown")]
14    pub const Unknown: Self = Self(0);
15    #[doc(alias = "INCallDestinationTypeNormal")]
16    pub const Normal: Self = Self(1);
17    #[doc(alias = "INCallDestinationTypeEmergency")]
18    pub const Emergency: Self = Self(2);
19    #[doc(alias = "INCallDestinationTypeVoicemail")]
20    pub const Voicemail: Self = Self(3);
21    #[doc(alias = "INCallDestinationTypeRedial")]
22    pub const Redial: Self = Self(4);
23    #[doc(alias = "INCallDestinationTypeCallBack")]
24    pub const CallBack: Self = Self(5);
25    #[doc(alias = "INCallDestinationTypeNormalDestination")]
26    #[deprecated = "Use INCallDestinationTypeNormal instead"]
27    pub const NormalDestination: Self = Self(1);
28    #[doc(alias = "INCallDestinationTypeEmergencyDestination")]
29    #[deprecated = "Use INCallDestinationTypeEmergency instead"]
30    pub const EmergencyDestination: Self = Self(2);
31    #[doc(alias = "INCallDestinationTypeVoicemailDestination")]
32    #[deprecated = "Use INCallDestinationTypeVoicemail instead"]
33    pub const VoicemailDestination: Self = Self(3);
34    #[doc(alias = "INCallDestinationTypeRedialDestination")]
35    #[deprecated = "Use INCallDestinationTypeRedial instead"]
36    pub const RedialDestination: Self = Self(4);
37}
38
39unsafe impl Encode for INCallDestinationType {
40    const ENCODING: Encoding = NSInteger::ENCODING;
41}
42
43unsafe impl RefEncode for INCallDestinationType {
44    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
45}