objc2_intents/generated/
INSearchForBillsIntentResponse.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
13#[repr(transparent)]
14#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
15pub struct INSearchForBillsIntentResponseCode(pub NSInteger);
16impl INSearchForBillsIntentResponseCode {
17 #[doc(alias = "INSearchForBillsIntentResponseCodeUnspecified")]
18 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
19 pub const Unspecified: Self = Self(0);
20 #[doc(alias = "INSearchForBillsIntentResponseCodeReady")]
21 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
22 pub const Ready: Self = Self(1);
23 #[doc(alias = "INSearchForBillsIntentResponseCodeInProgress")]
24 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
25 pub const InProgress: Self = Self(2);
26 #[doc(alias = "INSearchForBillsIntentResponseCodeSuccess")]
27 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
28 pub const Success: Self = Self(3);
29 #[doc(alias = "INSearchForBillsIntentResponseCodeFailure")]
30 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
31 pub const Failure: Self = Self(4);
32 #[doc(alias = "INSearchForBillsIntentResponseCodeFailureRequiringAppLaunch")]
33 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
34 pub const FailureRequiringAppLaunch: Self = Self(5);
35 #[doc(alias = "INSearchForBillsIntentResponseCodeFailureCredentialsUnverified")]
36 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
37 pub const FailureCredentialsUnverified: Self = Self(6);
38 #[doc(alias = "INSearchForBillsIntentResponseCodeFailureBillNotFound")]
39 #[deprecated = "INSearchForBillsIntentResponseCode is deprecated. There is no replacement."]
40 pub const FailureBillNotFound: Self = Self(7);
41}
42
43unsafe impl Encode for INSearchForBillsIntentResponseCode {
44 const ENCODING: Encoding = NSInteger::ENCODING;
45}
46
47unsafe impl RefEncode for INSearchForBillsIntentResponseCode {
48 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
49}
50
51extern_class!(
52 #[unsafe(super(INIntentResponse, NSObject))]
54 #[derive(Debug, PartialEq, Eq, Hash)]
55 #[cfg(feature = "INIntentResponse")]
56 #[deprecated = "INSearchForBillsIntentResponse is deprecated. There is no replacement."]
57 pub struct INSearchForBillsIntentResponse;
58);
59
60#[cfg(feature = "INIntentResponse")]
61extern_conformance!(
62 unsafe impl NSCoding for INSearchForBillsIntentResponse {}
63);
64
65#[cfg(feature = "INIntentResponse")]
66extern_conformance!(
67 unsafe impl NSCopying for INSearchForBillsIntentResponse {}
68);
69
70#[cfg(feature = "INIntentResponse")]
71unsafe impl CopyingHelper for INSearchForBillsIntentResponse {
72 type Result = Self;
73}
74
75#[cfg(feature = "INIntentResponse")]
76extern_conformance!(
77 unsafe impl NSObjectProtocol for INSearchForBillsIntentResponse {}
78);
79
80#[cfg(feature = "INIntentResponse")]
81extern_conformance!(
82 unsafe impl NSSecureCoding for INSearchForBillsIntentResponse {}
83);
84
85#[cfg(feature = "INIntentResponse")]
86impl INSearchForBillsIntentResponse {
87 extern_methods!(
88 #[deprecated = "INSearchForBillsIntentResponse is deprecated. There is no replacement."]
89 #[unsafe(method(init))]
90 #[unsafe(method_family = init)]
91 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
92
93 #[deprecated = "INSearchForBillsIntentResponse is deprecated. There is no replacement."]
94 #[unsafe(method(initWithCode:userActivity:))]
95 #[unsafe(method_family = init)]
96 pub unsafe fn initWithCode_userActivity(
97 this: Allocated<Self>,
98 code: INSearchForBillsIntentResponseCode,
99 user_activity: Option<&NSUserActivity>,
100 ) -> Retained<Self>;
101
102 #[deprecated = "INSearchForBillsIntentResponse is deprecated. There is no replacement."]
103 #[unsafe(method(code))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn code(&self) -> INSearchForBillsIntentResponseCode;
106
107 #[cfg(feature = "INBillDetails")]
108 #[deprecated = "INSearchForBillsIntentResponse is deprecated. There is no replacement."]
109 #[unsafe(method(bills))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn bills(&self) -> Option<Retained<NSArray<INBillDetails>>>;
112
113 #[cfg(feature = "INBillDetails")]
114 #[deprecated = "INSearchForBillsIntentResponse is deprecated. There is no replacement."]
118 #[unsafe(method(setBills:))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn setBills(&self, bills: Option<&NSArray<INBillDetails>>);
121 );
122}
123
124#[cfg(feature = "INIntentResponse")]
126impl INSearchForBillsIntentResponse {
127 extern_methods!(
128 #[unsafe(method(new))]
129 #[unsafe(method_family = new)]
130 pub unsafe fn new() -> Retained<Self>;
131 );
132}