objc2_intents/generated/
INRideOption.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 INRideOption;
15);
16
17extern_conformance!(
18 unsafe impl NSCoding for INRideOption {}
19);
20
21extern_conformance!(
22 unsafe impl NSCopying for INRideOption {}
23);
24
25unsafe impl CopyingHelper for INRideOption {
26 type Result = Self;
27}
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for INRideOption {}
31);
32
33extern_conformance!(
34 unsafe impl NSSecureCoding for INRideOption {}
35);
36
37impl INRideOption {
38 extern_methods!(
39 #[unsafe(method(init))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43 #[unsafe(method(initWithName:estimatedPickupDate:))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn initWithName_estimatedPickupDate(
46 this: Allocated<Self>,
47 name: &NSString,
48 estimated_pickup_date: &NSDate,
49 ) -> Retained<Self>;
50
51 #[unsafe(method(initWithCoder:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithCoder(
57 this: Allocated<Self>,
58 decoder: &NSCoder,
59 ) -> Option<Retained<Self>>;
60
61 #[unsafe(method(name))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn name(&self) -> Retained<NSString>;
64
65 #[unsafe(method(setName:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn setName(&self, name: &NSString);
71
72 #[unsafe(method(estimatedPickupDate))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn estimatedPickupDate(&self) -> Retained<NSDate>;
75
76 #[unsafe(method(setEstimatedPickupDate:))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn setEstimatedPickupDate(&self, estimated_pickup_date: &NSDate);
82
83 #[cfg(feature = "INPriceRange")]
84 #[unsafe(method(priceRange))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn priceRange(&self) -> Option<Retained<INPriceRange>>;
87
88 #[cfg(feature = "INPriceRange")]
89 #[unsafe(method(setPriceRange:))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn setPriceRange(&self, price_range: Option<&INPriceRange>);
95
96 #[unsafe(method(usesMeteredFare))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn usesMeteredFare(&self) -> Option<Retained<NSNumber>>;
99
100 #[unsafe(method(setUsesMeteredFare:))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn setUsesMeteredFare(&self, uses_metered_fare: Option<&NSNumber>);
106
107 #[unsafe(method(disclaimerMessage))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn disclaimerMessage(&self) -> Option<Retained<NSString>>;
110
111 #[unsafe(method(setDisclaimerMessage:))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn setDisclaimerMessage(&self, disclaimer_message: Option<&NSString>);
117
118 #[cfg(feature = "INRidePartySizeOption")]
119 #[unsafe(method(availablePartySizeOptions))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn availablePartySizeOptions(
122 &self,
123 ) -> Option<Retained<NSArray<INRidePartySizeOption>>>;
124
125 #[cfg(feature = "INRidePartySizeOption")]
126 #[unsafe(method(setAvailablePartySizeOptions:))]
130 #[unsafe(method_family = none)]
131 pub unsafe fn setAvailablePartySizeOptions(
132 &self,
133 available_party_size_options: Option<&NSArray<INRidePartySizeOption>>,
134 );
135
136 #[unsafe(method(availablePartySizeOptionsSelectionPrompt))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn availablePartySizeOptionsSelectionPrompt(&self)
139 -> Option<Retained<NSString>>;
140
141 #[unsafe(method(setAvailablePartySizeOptionsSelectionPrompt:))]
145 #[unsafe(method_family = none)]
146 pub unsafe fn setAvailablePartySizeOptionsSelectionPrompt(
147 &self,
148 available_party_size_options_selection_prompt: Option<&NSString>,
149 );
150
151 #[unsafe(method(specialPricing))]
152 #[unsafe(method_family = none)]
153 pub unsafe fn specialPricing(&self) -> Option<Retained<NSString>>;
154
155 #[unsafe(method(setSpecialPricing:))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn setSpecialPricing(&self, special_pricing: Option<&NSString>);
161
162 #[cfg(feature = "INImage")]
163 #[unsafe(method(specialPricingBadgeImage))]
164 #[unsafe(method_family = none)]
165 pub unsafe fn specialPricingBadgeImage(&self) -> Option<Retained<INImage>>;
166
167 #[cfg(feature = "INImage")]
168 #[unsafe(method(setSpecialPricingBadgeImage:))]
172 #[unsafe(method_family = none)]
173 pub unsafe fn setSpecialPricingBadgeImage(
174 &self,
175 special_pricing_badge_image: Option<&INImage>,
176 );
177
178 #[cfg(feature = "INRideFareLineItem")]
179 #[unsafe(method(fareLineItems))]
180 #[unsafe(method_family = none)]
181 pub unsafe fn fareLineItems(&self) -> Option<Retained<NSArray<INRideFareLineItem>>>;
182
183 #[cfg(feature = "INRideFareLineItem")]
184 #[unsafe(method(setFareLineItems:))]
188 #[unsafe(method_family = none)]
189 pub unsafe fn setFareLineItems(
190 &self,
191 fare_line_items: Option<&NSArray<INRideFareLineItem>>,
192 );
193
194 #[unsafe(method(userActivityForBookingInApplication))]
195 #[unsafe(method_family = none)]
196 pub unsafe fn userActivityForBookingInApplication(
197 &self,
198 ) -> Option<Retained<NSUserActivity>>;
199
200 #[unsafe(method(setUserActivityForBookingInApplication:))]
202 #[unsafe(method_family = none)]
203 pub unsafe fn setUserActivityForBookingInApplication(
204 &self,
205 user_activity_for_booking_in_application: Option<&NSUserActivity>,
206 );
207 );
208}
209
210impl INRideOption {
212 extern_methods!(
213 #[unsafe(method(new))]
214 #[unsafe(method_family = new)]
215 pub unsafe fn new() -> Retained<Self>;
216 );
217}
218
219impl INRideOption {
221 extern_methods!(
222 #[unsafe(method(identifier))]
223 #[unsafe(method_family = none)]
224 pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
225
226 #[unsafe(method(setIdentifier:))]
230 #[unsafe(method_family = none)]
231 pub unsafe fn setIdentifier(&self, identifier: Option<&NSString>);
232 );
233}