objc2_core_spotlight/generated/
CSPerson.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct CSPerson;
15);
16
17extern_conformance!(
18 unsafe impl NSCoding for CSPerson {}
19);
20
21extern_conformance!(
22 unsafe impl NSCopying for CSPerson {}
23);
24
25unsafe impl CopyingHelper for CSPerson {
26 type Result = Self;
27}
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for CSPerson {}
31);
32
33extern_conformance!(
34 unsafe impl NSSecureCoding for CSPerson {}
35);
36
37impl CSPerson {
38 extern_methods!(
39 #[unsafe(method(initWithDisplayName:handles:handleIdentifier:))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn initWithDisplayName_handles_handleIdentifier(
42 this: Allocated<Self>,
43 display_name: Option<&NSString>,
44 handles: &NSArray<NSString>,
45 handle_identifier: &NSString,
46 ) -> Retained<Self>;
47
48 #[unsafe(method(displayName))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn displayName(&self) -> Option<Retained<NSString>>;
51
52 #[unsafe(method(handles))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn handles(&self) -> Retained<NSArray<NSString>>;
55
56 #[unsafe(method(handleIdentifier))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn handleIdentifier(&self) -> Retained<NSString>;
59
60 #[unsafe(method(contactIdentifier))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn contactIdentifier(&self) -> Option<Retained<NSString>>;
63
64 #[unsafe(method(setContactIdentifier:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn setContactIdentifier(&self, contact_identifier: Option<&NSString>);
70 );
71}
72
73impl CSPerson {
75 extern_methods!(
76 #[unsafe(method(init))]
77 #[unsafe(method_family = init)]
78 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
79
80 #[unsafe(method(new))]
81 #[unsafe(method_family = new)]
82 pub unsafe fn new() -> Retained<Self>;
83 );
84}