objc2-intents 0.3.2

Bindings to the Intents framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/intents/incalldestinationtype?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INCallDestinationType(pub NSInteger);
impl INCallDestinationType {
    #[doc(alias = "INCallDestinationTypeUnknown")]
    pub const Unknown: Self = Self(0);
    #[doc(alias = "INCallDestinationTypeNormal")]
    pub const Normal: Self = Self(1);
    #[doc(alias = "INCallDestinationTypeEmergency")]
    pub const Emergency: Self = Self(2);
    #[doc(alias = "INCallDestinationTypeVoicemail")]
    pub const Voicemail: Self = Self(3);
    #[doc(alias = "INCallDestinationTypeRedial")]
    pub const Redial: Self = Self(4);
    #[doc(alias = "INCallDestinationTypeCallBack")]
    pub const CallBack: Self = Self(5);
    #[doc(alias = "INCallDestinationTypeNormalDestination")]
    #[deprecated = "Use INCallDestinationTypeNormal instead"]
    pub const NormalDestination: Self = Self(1);
    #[doc(alias = "INCallDestinationTypeEmergencyDestination")]
    #[deprecated = "Use INCallDestinationTypeEmergency instead"]
    pub const EmergencyDestination: Self = Self(2);
    #[doc(alias = "INCallDestinationTypeVoicemailDestination")]
    #[deprecated = "Use INCallDestinationTypeVoicemail instead"]
    pub const VoicemailDestination: Self = Self(3);
    #[doc(alias = "INCallDestinationTypeRedialDestination")]
    #[deprecated = "Use INCallDestinationTypeRedial instead"]
    pub const RedialDestination: Self = Self(4);
}

unsafe impl Encode for INCallDestinationType {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for INCallDestinationType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}