objc2_intents/generated/
INBillPayeeResolutionResult.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/inbillpayeeresolutionresult?language=objc)
11    #[unsafe(super(INIntentResolutionResult, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "INIntentResolutionResult")]
14    #[deprecated]
15    pub struct INBillPayeeResolutionResult;
16);
17
18#[cfg(feature = "INIntentResolutionResult")]
19extern_conformance!(
20    unsafe impl NSObjectProtocol for INBillPayeeResolutionResult {}
21);
22
23#[cfg(feature = "INIntentResolutionResult")]
24impl INBillPayeeResolutionResult {
25    extern_methods!(
26        #[cfg(feature = "INBillPayee")]
27        #[deprecated]
28        #[unsafe(method(successWithResolvedBillPayee:))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn successWithResolvedBillPayee(
31            resolved_bill_payee: &INBillPayee,
32        ) -> Retained<Self>;
33
34        #[cfg(feature = "INBillPayee")]
35        #[deprecated]
36        #[unsafe(method(disambiguationWithBillPayeesToDisambiguate:))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn disambiguationWithBillPayeesToDisambiguate(
39            bill_payees_to_disambiguate: &NSArray<INBillPayee>,
40        ) -> Retained<Self>;
41
42        #[cfg(feature = "INBillPayee")]
43        #[deprecated]
44        #[unsafe(method(confirmationRequiredWithBillPayeeToConfirm:))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn confirmationRequiredWithBillPayeeToConfirm(
47            bill_payee_to_confirm: Option<&INBillPayee>,
48        ) -> Retained<Self>;
49    );
50}
51
52/// Methods declared on superclass `INIntentResolutionResult`.
53#[cfg(feature = "INIntentResolutionResult")]
54impl INBillPayeeResolutionResult {
55    extern_methods!(
56        #[unsafe(method(init))]
57        #[unsafe(method_family = init)]
58        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
59
60        #[unsafe(method(needsValue))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn needsValue() -> Retained<Self>;
63
64        #[unsafe(method(notRequired))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn notRequired() -> Retained<Self>;
67
68        #[unsafe(method(unsupported))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn unsupported() -> Retained<Self>;
71    );
72}
73
74/// Methods declared on superclass `NSObject`.
75#[cfg(feature = "INIntentResolutionResult")]
76impl INBillPayeeResolutionResult {
77    extern_methods!(
78        #[unsafe(method(new))]
79        #[unsafe(method_family = new)]
80        pub unsafe fn new() -> Retained<Self>;
81    );
82}