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