objc2_itunes_library/generated/
ITLibArtist.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// The ITLibArtist class represents an artist, such as the performer of a song.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/ituneslibrary/itlibartist?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct ITLibArtist;
16);
17
18extern_conformance!(
19    unsafe impl NSObjectProtocol for ITLibArtist {}
20);
21
22impl ITLibArtist {
23    extern_methods!(
24        /// The name of this artist.
25        #[unsafe(method(name))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn name(&self) -> Option<Retained<NSString>>;
28
29        /// The name of this artist that should be used for sorting purposes.
30        #[unsafe(method(sortName))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn sortName(&self) -> Option<Retained<NSString>>;
33
34        /// The unique identifier of this artist.
35        #[unsafe(method(persistentID))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn persistentID(&self) -> Retained<NSNumber>;
38    );
39}
40
41/// Methods declared on superclass `NSObject`.
42impl ITLibArtist {
43    extern_methods!(
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48        #[unsafe(method(new))]
49        #[unsafe(method_family = new)]
50        pub unsafe fn new() -> Retained<Self>;
51    );
52}