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