objc2_intents/generated/
INRestaurantGuest.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(INPerson, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "INPerson")]
15 pub struct INRestaurantGuest;
16);
17
18#[cfg(feature = "INPerson")]
19extern_conformance!(
20 unsafe impl NSCoding for INRestaurantGuest {}
21);
22
23#[cfg(feature = "INPerson")]
24extern_conformance!(
25 unsafe impl NSCopying for INRestaurantGuest {}
26);
27
28#[cfg(feature = "INPerson")]
29unsafe impl CopyingHelper for INRestaurantGuest {
30 type Result = Self;
31}
32
33#[cfg(feature = "INPerson")]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for INRestaurantGuest {}
36);
37
38#[cfg(feature = "INPerson")]
39extern_conformance!(
40 unsafe impl NSSecureCoding for INRestaurantGuest {}
41);
42
43#[cfg(feature = "INPerson")]
44impl INRestaurantGuest {
45 extern_methods!(
46 #[unsafe(method(initWithNameComponents:phoneNumber:emailAddress:))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn initWithNameComponents_phoneNumber_emailAddress(
49 this: Allocated<Self>,
50 name_components: Option<&NSPersonNameComponents>,
51 phone_number: Option<&NSString>,
52 email_address: Option<&NSString>,
53 ) -> Retained<Self>;
54
55 #[unsafe(method(phoneNumber))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn phoneNumber(&self) -> Option<Retained<NSString>>;
58
59 #[unsafe(method(setPhoneNumber:))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn setPhoneNumber(&self, phone_number: Option<&NSString>);
65
66 #[unsafe(method(emailAddress))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn emailAddress(&self) -> Option<Retained<NSString>>;
69
70 #[unsafe(method(setEmailAddress:))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn setEmailAddress(&self, email_address: Option<&NSString>);
76 );
77}
78
79#[cfg(feature = "INPerson")]
81impl INRestaurantGuest {
82 extern_methods!(
83 #[unsafe(method(init))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
86
87 #[cfg(all(feature = "INImage", feature = "INPersonHandle"))]
88 #[unsafe(method(initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:))]
89 #[unsafe(method_family = init)]
90 pub unsafe fn initWithPersonHandle_nameComponents_displayName_image_contactIdentifier_customIdentifier(
91 this: Allocated<Self>,
92 person_handle: &INPersonHandle,
93 name_components: Option<&NSPersonNameComponents>,
94 display_name: Option<&NSString>,
95 image: Option<&INImage>,
96 contact_identifier: Option<&NSString>,
97 custom_identifier: Option<&NSString>,
98 ) -> Retained<Self>;
99
100 #[cfg(all(
101 feature = "INImage",
102 feature = "INPersonHandle",
103 feature = "INPersonRelationship"
104 ))]
105 #[unsafe(method(initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:relationship:))]
106 #[unsafe(method_family = init)]
107 pub unsafe fn initWithPersonHandle_nameComponents_displayName_image_contactIdentifier_customIdentifier_relationship(
108 this: Allocated<Self>,
109 person_handle: &INPersonHandle,
110 name_components: Option<&NSPersonNameComponents>,
111 display_name: Option<&NSString>,
112 image: Option<&INImage>,
113 contact_identifier: Option<&NSString>,
114 custom_identifier: Option<&NSString>,
115 relationship: Option<&INPersonRelationship>,
116 ) -> Retained<Self>;
117
118 #[cfg(all(feature = "INImage", feature = "INPersonHandle"))]
119 #[unsafe(method(initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:))]
120 #[unsafe(method_family = init)]
121 pub unsafe fn initWithPersonHandle_nameComponents_displayName_image_contactIdentifier_customIdentifier_isMe(
122 this: Allocated<Self>,
123 person_handle: &INPersonHandle,
124 name_components: Option<&NSPersonNameComponents>,
125 display_name: Option<&NSString>,
126 image: Option<&INImage>,
127 contact_identifier: Option<&NSString>,
128 custom_identifier: Option<&NSString>,
129 is_me: bool,
130 ) -> Retained<Self>;
131
132 #[cfg(all(feature = "INImage", feature = "INPersonHandle"))]
133 #[unsafe(method(initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:suggestionType:))]
134 #[unsafe(method_family = init)]
135 pub unsafe fn initWithPersonHandle_nameComponents_displayName_image_contactIdentifier_customIdentifier_isMe_suggestionType(
136 this: Allocated<Self>,
137 person_handle: &INPersonHandle,
138 name_components: Option<&NSPersonNameComponents>,
139 display_name: Option<&NSString>,
140 image: Option<&INImage>,
141 contact_identifier: Option<&NSString>,
142 custom_identifier: Option<&NSString>,
143 is_me: bool,
144 suggestion_type: INPersonSuggestionType,
145 ) -> Retained<Self>;
146
147 #[cfg(all(feature = "INImage", feature = "INPersonHandle"))]
148 #[unsafe(method(initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isContactSuggestion:suggestionType:))]
149 #[unsafe(method_family = init)]
150 pub unsafe fn initWithPersonHandle_nameComponents_displayName_image_contactIdentifier_customIdentifier_isContactSuggestion_suggestionType(
151 this: Allocated<Self>,
152 person_handle: &INPersonHandle,
153 name_components: Option<&NSPersonNameComponents>,
154 display_name: Option<&NSString>,
155 image: Option<&INImage>,
156 contact_identifier: Option<&NSString>,
157 custom_identifier: Option<&NSString>,
158 is_contact_suggestion: bool,
159 suggestion_type: INPersonSuggestionType,
160 ) -> Retained<Self>;
161 );
162}
163
164#[cfg(feature = "INPerson")]
166impl INRestaurantGuest {
167 extern_methods!(
168 #[unsafe(method(new))]
169 #[unsafe(method_family = new)]
170 pub unsafe fn new() -> Retained<Self>;
171 );
172}