objc2_intents/generated/
INAccountTypeResolutionResult.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inaccounttyperesolutionresult?language=objc)
10    #[unsafe(super(INIntentResolutionResult, NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "INIntentResolutionResult")]
13    pub struct INAccountTypeResolutionResult;
14);
15
16#[cfg(feature = "INIntentResolutionResult")]
17extern_conformance!(
18    unsafe impl NSObjectProtocol for INAccountTypeResolutionResult {}
19);
20
21#[cfg(feature = "INIntentResolutionResult")]
22impl INAccountTypeResolutionResult {
23    extern_methods!(
24        #[cfg(feature = "INAccountType")]
25        #[unsafe(method(successWithResolvedAccountType:))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn successWithResolvedAccountType(
28            resolved_account_type: INAccountType,
29        ) -> Retained<Self>;
30
31        #[cfg(feature = "INAccountType")]
32        #[deprecated]
33        #[unsafe(method(successWithResolvedValue:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn successWithResolvedValue(resolved_value: INAccountType) -> Retained<Self>;
36
37        #[cfg(feature = "INAccountType")]
38        #[unsafe(method(confirmationRequiredWithAccountTypeToConfirm:))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn confirmationRequiredWithAccountTypeToConfirm(
41            account_type_to_confirm: INAccountType,
42        ) -> Retained<Self>;
43
44        #[cfg(feature = "INAccountType")]
45        #[deprecated]
46        #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn confirmationRequiredWithValueToConfirm(
49            value_to_confirm: INAccountType,
50        ) -> Retained<Self>;
51    );
52}
53
54/// Methods declared on superclass `INIntentResolutionResult`.
55#[cfg(feature = "INIntentResolutionResult")]
56impl INAccountTypeResolutionResult {
57    extern_methods!(
58        #[unsafe(method(init))]
59        #[unsafe(method_family = init)]
60        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
61
62        #[unsafe(method(needsValue))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn needsValue() -> Retained<Self>;
65
66        #[unsafe(method(notRequired))]
67        #[unsafe(method_family = none)]
68        pub unsafe fn notRequired() -> Retained<Self>;
69
70        #[unsafe(method(unsupported))]
71        #[unsafe(method_family = none)]
72        pub unsafe fn unsupported() -> Retained<Self>;
73    );
74}
75
76/// Methods declared on superclass `NSObject`.
77#[cfg(feature = "INIntentResolutionResult")]
78impl INAccountTypeResolutionResult {
79    extern_methods!(
80        #[unsafe(method(new))]
81        #[unsafe(method_family = new)]
82        pub unsafe fn new() -> Retained<Self>;
83    );
84}