objc2_intents/generated/
INWorkoutGoalUnitTypeResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(INIntentResolutionResult, NSObject))]
11 #[derive(Debug, PartialEq, Eq, Hash)]
12 #[cfg(feature = "INIntentResolutionResult")]
13 pub struct INWorkoutGoalUnitTypeResolutionResult;
14);
15
16#[cfg(feature = "INIntentResolutionResult")]
17extern_conformance!(
18 unsafe impl NSObjectProtocol for INWorkoutGoalUnitTypeResolutionResult {}
19);
20
21#[cfg(feature = "INIntentResolutionResult")]
22impl INWorkoutGoalUnitTypeResolutionResult {
23 extern_methods!(
24 #[cfg(feature = "INWorkoutGoalUnitType")]
25 #[unsafe(method(successWithResolvedWorkoutGoalUnitType:))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn successWithResolvedWorkoutGoalUnitType(
28 resolved_workout_goal_unit_type: INWorkoutGoalUnitType,
29 ) -> Retained<Self>;
30
31 #[cfg(feature = "INWorkoutGoalUnitType")]
32 #[deprecated]
33 #[unsafe(method(successWithResolvedValue:))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn successWithResolvedValue(
36 resolved_value: INWorkoutGoalUnitType,
37 ) -> Retained<Self>;
38
39 #[cfg(feature = "INWorkoutGoalUnitType")]
40 #[unsafe(method(confirmationRequiredWithWorkoutGoalUnitTypeToConfirm:))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn confirmationRequiredWithWorkoutGoalUnitTypeToConfirm(
43 workout_goal_unit_type_to_confirm: INWorkoutGoalUnitType,
44 ) -> Retained<Self>;
45
46 #[cfg(feature = "INWorkoutGoalUnitType")]
47 #[deprecated]
48 #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn confirmationRequiredWithValueToConfirm(
51 value_to_confirm: INWorkoutGoalUnitType,
52 ) -> Retained<Self>;
53 );
54}
55
56#[cfg(feature = "INIntentResolutionResult")]
58impl INWorkoutGoalUnitTypeResolutionResult {
59 extern_methods!(
60 #[unsafe(method(init))]
61 #[unsafe(method_family = init)]
62 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
63
64 #[unsafe(method(needsValue))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn needsValue() -> Retained<Self>;
67
68 #[unsafe(method(notRequired))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn notRequired() -> Retained<Self>;
71
72 #[unsafe(method(unsupported))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn unsupported() -> Retained<Self>;
75 );
76}
77
78#[cfg(feature = "INIntentResolutionResult")]
80impl INWorkoutGoalUnitTypeResolutionResult {
81 extern_methods!(
82 #[unsafe(method(new))]
83 #[unsafe(method_family = new)]
84 pub unsafe fn new() -> Retained<Self>;
85 );
86}