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/inmediaitemtype?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INMediaItemType(pub NSInteger);
impl INMediaItemType {
    #[doc(alias = "INMediaItemTypeUnknown")]
    pub const Unknown: Self = Self(0);
    #[doc(alias = "INMediaItemTypeSong")]
    pub const Song: Self = Self(1);
    #[doc(alias = "INMediaItemTypeAlbum")]
    pub const Album: Self = Self(2);
    #[doc(alias = "INMediaItemTypeArtist")]
    pub const Artist: Self = Self(3);
    #[doc(alias = "INMediaItemTypeGenre")]
    pub const Genre: Self = Self(4);
    #[doc(alias = "INMediaItemTypePlaylist")]
    pub const Playlist: Self = Self(5);
    #[doc(alias = "INMediaItemTypePodcastShow")]
    pub const PodcastShow: Self = Self(6);
    #[doc(alias = "INMediaItemTypePodcastEpisode")]
    pub const PodcastEpisode: Self = Self(7);
    #[doc(alias = "INMediaItemTypePodcastPlaylist")]
    pub const PodcastPlaylist: Self = Self(8);
    #[doc(alias = "INMediaItemTypeMusicStation")]
    pub const MusicStation: Self = Self(9);
    #[doc(alias = "INMediaItemTypeAudioBook")]
    pub const AudioBook: Self = Self(10);
    #[doc(alias = "INMediaItemTypeMovie")]
    pub const Movie: Self = Self(11);
    #[doc(alias = "INMediaItemTypeTVShow")]
    pub const TVShow: Self = Self(12);
    #[doc(alias = "INMediaItemTypeTVShowEpisode")]
    pub const TVShowEpisode: Self = Self(13);
    #[doc(alias = "INMediaItemTypeMusicVideo")]
    pub const MusicVideo: Self = Self(14);
    #[doc(alias = "INMediaItemTypePodcastStation")]
    pub const PodcastStation: Self = Self(15);
    #[doc(alias = "INMediaItemTypeRadioStation")]
    pub const RadioStation: Self = Self(16);
    #[doc(alias = "INMediaItemTypeStation")]
    pub const Station: Self = Self(17);
    #[doc(alias = "INMediaItemTypeMusic")]
    pub const Music: Self = Self(18);
    #[doc(alias = "INMediaItemTypeAlgorithmicRadioStation")]
    pub const AlgorithmicRadioStation: Self = Self(19);
    #[doc(alias = "INMediaItemTypeNews")]
    pub const News: Self = Self(20);
}

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

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