objc2_intents/generated/
INMediaItemType.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/inmediaitemtype?language=objc)
8// NS_ENUM
9#[repr(transparent)]
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
11pub struct INMediaItemType(pub NSInteger);
12impl INMediaItemType {
13    #[doc(alias = "INMediaItemTypeUnknown")]
14    pub const Unknown: Self = Self(0);
15    #[doc(alias = "INMediaItemTypeSong")]
16    pub const Song: Self = Self(1);
17    #[doc(alias = "INMediaItemTypeAlbum")]
18    pub const Album: Self = Self(2);
19    #[doc(alias = "INMediaItemTypeArtist")]
20    pub const Artist: Self = Self(3);
21    #[doc(alias = "INMediaItemTypeGenre")]
22    pub const Genre: Self = Self(4);
23    #[doc(alias = "INMediaItemTypePlaylist")]
24    pub const Playlist: Self = Self(5);
25    #[doc(alias = "INMediaItemTypePodcastShow")]
26    pub const PodcastShow: Self = Self(6);
27    #[doc(alias = "INMediaItemTypePodcastEpisode")]
28    pub const PodcastEpisode: Self = Self(7);
29    #[doc(alias = "INMediaItemTypePodcastPlaylist")]
30    pub const PodcastPlaylist: Self = Self(8);
31    #[doc(alias = "INMediaItemTypeMusicStation")]
32    pub const MusicStation: Self = Self(9);
33    #[doc(alias = "INMediaItemTypeAudioBook")]
34    pub const AudioBook: Self = Self(10);
35    #[doc(alias = "INMediaItemTypeMovie")]
36    pub const Movie: Self = Self(11);
37    #[doc(alias = "INMediaItemTypeTVShow")]
38    pub const TVShow: Self = Self(12);
39    #[doc(alias = "INMediaItemTypeTVShowEpisode")]
40    pub const TVShowEpisode: Self = Self(13);
41    #[doc(alias = "INMediaItemTypeMusicVideo")]
42    pub const MusicVideo: Self = Self(14);
43    #[doc(alias = "INMediaItemTypePodcastStation")]
44    pub const PodcastStation: Self = Self(15);
45    #[doc(alias = "INMediaItemTypeRadioStation")]
46    pub const RadioStation: Self = Self(16);
47    #[doc(alias = "INMediaItemTypeStation")]
48    pub const Station: Self = Self(17);
49    #[doc(alias = "INMediaItemTypeMusic")]
50    pub const Music: Self = Self(18);
51    #[doc(alias = "INMediaItemTypeAlgorithmicRadioStation")]
52    pub const AlgorithmicRadioStation: Self = Self(19);
53    #[doc(alias = "INMediaItemTypeNews")]
54    pub const News: Self = Self(20);
55}
56
57unsafe impl Encode for INMediaItemType {
58    const ENCODING: Encoding = NSInteger::ENCODING;
59}
60
61unsafe impl RefEncode for INMediaItemType {
62    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
63}