objc2_intents/generated/
INReservation.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inreservation?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct INReservation;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for INReservation {}
18);
19
20extern_conformance!(
21    unsafe impl NSCopying for INReservation {}
22);
23
24unsafe impl CopyingHelper for INReservation {
25    type Result = Self;
26}
27
28extern_conformance!(
29    unsafe impl NSObjectProtocol for INReservation {}
30);
31
32extern_conformance!(
33    unsafe impl NSSecureCoding for INReservation {}
34);
35
36impl INReservation {
37    extern_methods!(
38        #[unsafe(method(init))]
39        #[unsafe(method_family = init)]
40        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41
42        #[cfg(feature = "INSpeakableString")]
43        #[unsafe(method(itemReference))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn itemReference(&self) -> Retained<INSpeakableString>;
46
47        #[unsafe(method(reservationNumber))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn reservationNumber(&self) -> Option<Retained<NSString>>;
50
51        #[unsafe(method(bookingTime))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn bookingTime(&self) -> Option<Retained<NSDate>>;
54
55        #[cfg(feature = "INReservationStatus")]
56        #[unsafe(method(reservationStatus))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn reservationStatus(&self) -> INReservationStatus;
59
60        #[unsafe(method(reservationHolderName))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn reservationHolderName(&self) -> Option<Retained<NSString>>;
63
64        #[cfg(feature = "INReservationAction")]
65        #[unsafe(method(actions))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn actions(&self) -> Option<Retained<NSArray<INReservationAction>>>;
68
69        #[unsafe(method(URL))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
72    );
73}
74
75/// Methods declared on superclass `NSObject`.
76impl INReservation {
77    extern_methods!(
78        #[unsafe(method(new))]
79        #[unsafe(method_family = new)]
80        pub unsafe fn new() -> Retained<Self>;
81    );
82}