objc2_itunes_library/generated/
ITLibArtist.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[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 #[unsafe(method(name))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn name(&self) -> Option<Retained<NSString>>;
28
29 #[unsafe(method(sortName))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn sortName(&self) -> Option<Retained<NSString>>;
33
34 #[unsafe(method(persistentID))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn persistentID(&self) -> Retained<NSNumber>;
38 );
39}
40
41impl 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}