objc2_health_kit/generated/
HKObjectType.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct HKObjectType;
16);
17
18unsafe impl Send for HKObjectType {}
19
20unsafe impl Sync for HKObjectType {}
21
22extern_conformance!(
23 unsafe impl NSCoding for HKObjectType {}
24);
25
26extern_conformance!(
27 unsafe impl NSCopying for HKObjectType {}
28);
29
30unsafe impl CopyingHelper for HKObjectType {
31 type Result = Self;
32}
33
34extern_conformance!(
35 unsafe impl NSObjectProtocol for HKObjectType {}
36);
37
38extern_conformance!(
39 unsafe impl NSSecureCoding for HKObjectType {}
40);
41
42impl HKObjectType {
43 extern_methods!(
44 #[unsafe(method(identifier))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn identifier(&self) -> Retained<NSString>;
50
51 #[unsafe(method(init))]
52 #[unsafe(method_family = init)]
53 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
54
55 #[cfg(feature = "HKTypeIdentifiers")]
56 #[unsafe(method(quantityTypeForIdentifier:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn quantityTypeForIdentifier(
59 identifier: &HKQuantityTypeIdentifier,
60 ) -> Option<Retained<HKQuantityType>>;
61
62 #[cfg(feature = "HKTypeIdentifiers")]
63 #[unsafe(method(categoryTypeForIdentifier:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn categoryTypeForIdentifier(
66 identifier: &HKCategoryTypeIdentifier,
67 ) -> Option<Retained<HKCategoryType>>;
68
69 #[cfg(feature = "HKTypeIdentifiers")]
70 #[unsafe(method(characteristicTypeForIdentifier:))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn characteristicTypeForIdentifier(
73 identifier: &HKCharacteristicTypeIdentifier,
74 ) -> Option<Retained<HKCharacteristicType>>;
75
76 #[cfg(feature = "HKTypeIdentifiers")]
77 #[unsafe(method(correlationTypeForIdentifier:))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn correlationTypeForIdentifier(
80 identifier: &HKCorrelationTypeIdentifier,
81 ) -> Option<Retained<HKCorrelationType>>;
82
83 #[cfg(feature = "HKTypeIdentifiers")]
84 #[unsafe(method(documentTypeForIdentifier:))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn documentTypeForIdentifier(
87 identifier: &HKDocumentTypeIdentifier,
88 ) -> Option<Retained<HKDocumentType>>;
89
90 #[cfg(feature = "HKTypeIdentifiers")]
91 #[unsafe(method(scoredAssessmentTypeForIdentifier:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn scoredAssessmentTypeForIdentifier(
94 identifier: &HKScoredAssessmentTypeIdentifier,
95 ) -> Option<Retained<HKScoredAssessmentType>>;
96
97 #[unsafe(method(seriesTypeForIdentifier:))]
98 #[unsafe(method_family = none)]
99 pub unsafe fn seriesTypeForIdentifier(
100 identifier: &NSString,
101 ) -> Option<Retained<HKSeriesType>>;
102
103 #[unsafe(method(workoutType))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn workoutType() -> Retained<HKWorkoutType>;
106
107 #[unsafe(method(activitySummaryType))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn activitySummaryType() -> Retained<HKActivitySummaryType>;
110
111 #[unsafe(method(audiogramSampleType))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn audiogramSampleType() -> Retained<HKAudiogramSampleType>;
114
115 #[unsafe(method(electrocardiogramType))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn electrocardiogramType() -> Retained<HKElectrocardiogramType>;
118
119 #[unsafe(method(medicationDoseEventType))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn medicationDoseEventType() -> Retained<HKMedicationDoseEventType>;
122
123 #[unsafe(method(visionPrescriptionType))]
124 #[unsafe(method_family = none)]
125 pub unsafe fn visionPrescriptionType() -> Retained<HKPrescriptionType>;
126
127 #[unsafe(method(stateOfMindType))]
128 #[unsafe(method_family = none)]
129 pub unsafe fn stateOfMindType() -> Retained<HKStateOfMindType>;
130
131 #[unsafe(method(userAnnotatedMedicationType))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn userAnnotatedMedicationType() -> Retained<HKUserAnnotatedMedicationType>;
134
135 #[unsafe(method(requiresPerObjectAuthorization))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn requiresPerObjectAuthorization(&self) -> bool;
139 );
140}
141
142impl HKObjectType {
144 extern_methods!(
145 #[unsafe(method(new))]
146 #[unsafe(method_family = new)]
147 pub unsafe fn new() -> Retained<Self>;
148 );
149}
150
151extern_class!(
152 #[unsafe(super(HKObjectType, NSObject))]
156 #[derive(Debug, PartialEq, Eq, Hash)]
157 pub struct HKCharacteristicType;
158);
159
160unsafe impl Send for HKCharacteristicType {}
161
162unsafe impl Sync for HKCharacteristicType {}
163
164extern_conformance!(
165 unsafe impl NSCoding for HKCharacteristicType {}
166);
167
168extern_conformance!(
169 unsafe impl NSCopying for HKCharacteristicType {}
170);
171
172unsafe impl CopyingHelper for HKCharacteristicType {
173 type Result = Self;
174}
175
176extern_conformance!(
177 unsafe impl NSObjectProtocol for HKCharacteristicType {}
178);
179
180extern_conformance!(
181 unsafe impl NSSecureCoding for HKCharacteristicType {}
182);
183
184impl HKCharacteristicType {
185 extern_methods!();
186}
187
188impl HKCharacteristicType {
190 extern_methods!(
191 #[unsafe(method(init))]
192 #[unsafe(method_family = init)]
193 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
194 );
195}
196
197impl HKCharacteristicType {
199 extern_methods!(
200 #[unsafe(method(new))]
201 #[unsafe(method_family = new)]
202 pub unsafe fn new() -> Retained<Self>;
203 );
204}
205
206extern_class!(
207 #[unsafe(super(HKObjectType, NSObject))]
211 #[derive(Debug, PartialEq, Eq, Hash)]
212 pub struct HKSampleType;
213);
214
215unsafe impl Send for HKSampleType {}
216
217unsafe impl Sync for HKSampleType {}
218
219extern_conformance!(
220 unsafe impl NSCoding for HKSampleType {}
221);
222
223extern_conformance!(
224 unsafe impl NSCopying for HKSampleType {}
225);
226
227unsafe impl CopyingHelper for HKSampleType {
228 type Result = Self;
229}
230
231extern_conformance!(
232 unsafe impl NSObjectProtocol for HKSampleType {}
233);
234
235extern_conformance!(
236 unsafe impl NSSecureCoding for HKSampleType {}
237);
238
239impl HKSampleType {
240 extern_methods!(
241 #[unsafe(method(isMaximumDurationRestricted))]
249 #[unsafe(method_family = none)]
250 pub unsafe fn isMaximumDurationRestricted(&self) -> bool;
251
252 #[unsafe(method(maximumAllowedDuration))]
263 #[unsafe(method_family = none)]
264 pub unsafe fn maximumAllowedDuration(&self) -> NSTimeInterval;
265
266 #[unsafe(method(isMinimumDurationRestricted))]
274 #[unsafe(method_family = none)]
275 pub unsafe fn isMinimumDurationRestricted(&self) -> bool;
276
277 #[unsafe(method(minimumAllowedDuration))]
288 #[unsafe(method_family = none)]
289 pub unsafe fn minimumAllowedDuration(&self) -> NSTimeInterval;
290
291 #[unsafe(method(allowsRecalibrationForEstimates))]
300 #[unsafe(method_family = none)]
301 pub unsafe fn allowsRecalibrationForEstimates(&self) -> bool;
302 );
303}
304
305impl HKSampleType {
307 extern_methods!(
308 #[unsafe(method(init))]
309 #[unsafe(method_family = init)]
310 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
311 );
312}
313
314impl HKSampleType {
316 extern_methods!(
317 #[unsafe(method(new))]
318 #[unsafe(method_family = new)]
319 pub unsafe fn new() -> Retained<Self>;
320 );
321}
322
323extern_class!(
324 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
328 #[derive(Debug, PartialEq, Eq, Hash)]
329 pub struct HKCategoryType;
330);
331
332unsafe impl Send for HKCategoryType {}
333
334unsafe impl Sync for HKCategoryType {}
335
336extern_conformance!(
337 unsafe impl NSCoding for HKCategoryType {}
338);
339
340extern_conformance!(
341 unsafe impl NSCopying for HKCategoryType {}
342);
343
344unsafe impl CopyingHelper for HKCategoryType {
345 type Result = Self;
346}
347
348extern_conformance!(
349 unsafe impl NSObjectProtocol for HKCategoryType {}
350);
351
352extern_conformance!(
353 unsafe impl NSSecureCoding for HKCategoryType {}
354);
355
356impl HKCategoryType {
357 extern_methods!();
358}
359
360impl HKCategoryType {
362 extern_methods!(
363 #[unsafe(method(init))]
364 #[unsafe(method_family = init)]
365 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
366 );
367}
368
369impl HKCategoryType {
371 extern_methods!(
372 #[unsafe(method(new))]
373 #[unsafe(method_family = new)]
374 pub unsafe fn new() -> Retained<Self>;
375 );
376}
377
378extern_class!(
379 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
383 #[derive(Debug, PartialEq, Eq, Hash)]
384 pub struct HKCorrelationType;
385);
386
387unsafe impl Send for HKCorrelationType {}
388
389unsafe impl Sync for HKCorrelationType {}
390
391extern_conformance!(
392 unsafe impl NSCoding for HKCorrelationType {}
393);
394
395extern_conformance!(
396 unsafe impl NSCopying for HKCorrelationType {}
397);
398
399unsafe impl CopyingHelper for HKCorrelationType {
400 type Result = Self;
401}
402
403extern_conformance!(
404 unsafe impl NSObjectProtocol for HKCorrelationType {}
405);
406
407extern_conformance!(
408 unsafe impl NSSecureCoding for HKCorrelationType {}
409);
410
411impl HKCorrelationType {
412 extern_methods!();
413}
414
415impl HKCorrelationType {
417 extern_methods!(
418 #[unsafe(method(init))]
419 #[unsafe(method_family = init)]
420 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
421 );
422}
423
424impl HKCorrelationType {
426 extern_methods!(
427 #[unsafe(method(new))]
428 #[unsafe(method_family = new)]
429 pub unsafe fn new() -> Retained<Self>;
430 );
431}
432
433extern_class!(
434 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
438 #[derive(Debug, PartialEq, Eq, Hash)]
439 pub struct HKDocumentType;
440);
441
442unsafe impl Send for HKDocumentType {}
443
444unsafe impl Sync for HKDocumentType {}
445
446extern_conformance!(
447 unsafe impl NSCoding for HKDocumentType {}
448);
449
450extern_conformance!(
451 unsafe impl NSCopying for HKDocumentType {}
452);
453
454unsafe impl CopyingHelper for HKDocumentType {
455 type Result = Self;
456}
457
458extern_conformance!(
459 unsafe impl NSObjectProtocol for HKDocumentType {}
460);
461
462extern_conformance!(
463 unsafe impl NSSecureCoding for HKDocumentType {}
464);
465
466impl HKDocumentType {
467 extern_methods!();
468}
469
470impl HKDocumentType {
472 extern_methods!(
473 #[unsafe(method(init))]
474 #[unsafe(method_family = init)]
475 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
476 );
477}
478
479impl HKDocumentType {
481 extern_methods!(
482 #[unsafe(method(new))]
483 #[unsafe(method_family = new)]
484 pub unsafe fn new() -> Retained<Self>;
485 );
486}
487
488extern_class!(
489 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
493 #[derive(Debug, PartialEq, Eq, Hash)]
494 pub struct HKQuantityType;
495);
496
497unsafe impl Send for HKQuantityType {}
498
499unsafe impl Sync for HKQuantityType {}
500
501extern_conformance!(
502 unsafe impl NSCoding for HKQuantityType {}
503);
504
505extern_conformance!(
506 unsafe impl NSCopying for HKQuantityType {}
507);
508
509unsafe impl CopyingHelper for HKQuantityType {
510 type Result = Self;
511}
512
513extern_conformance!(
514 unsafe impl NSObjectProtocol for HKQuantityType {}
515);
516
517extern_conformance!(
518 unsafe impl NSSecureCoding for HKQuantityType {}
519);
520
521impl HKQuantityType {
522 extern_methods!(
523 #[cfg(feature = "HKQuantityAggregationStyle")]
524 #[unsafe(method(aggregationStyle))]
525 #[unsafe(method_family = none)]
526 pub unsafe fn aggregationStyle(&self) -> HKQuantityAggregationStyle;
527
528 #[cfg(feature = "HKUnit")]
529 #[unsafe(method(isCompatibleWithUnit:))]
532 #[unsafe(method_family = none)]
533 pub unsafe fn isCompatibleWithUnit(&self, unit: &HKUnit) -> bool;
534 );
535}
536
537impl HKQuantityType {
539 extern_methods!(
540 #[unsafe(method(init))]
541 #[unsafe(method_family = init)]
542 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
543 );
544}
545
546impl HKQuantityType {
548 extern_methods!(
549 #[unsafe(method(new))]
550 #[unsafe(method_family = new)]
551 pub unsafe fn new() -> Retained<Self>;
552 );
553}
554
555extern_class!(
556 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
560 #[derive(Debug, PartialEq, Eq, Hash)]
561 pub struct HKWorkoutType;
562);
563
564unsafe impl Send for HKWorkoutType {}
565
566unsafe impl Sync for HKWorkoutType {}
567
568extern_conformance!(
569 unsafe impl NSCoding for HKWorkoutType {}
570);
571
572extern_conformance!(
573 unsafe impl NSCopying for HKWorkoutType {}
574);
575
576unsafe impl CopyingHelper for HKWorkoutType {
577 type Result = Self;
578}
579
580extern_conformance!(
581 unsafe impl NSObjectProtocol for HKWorkoutType {}
582);
583
584extern_conformance!(
585 unsafe impl NSSecureCoding for HKWorkoutType {}
586);
587
588impl HKWorkoutType {
589 extern_methods!();
590}
591
592impl HKWorkoutType {
594 extern_methods!(
595 #[unsafe(method(init))]
596 #[unsafe(method_family = init)]
597 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
598 );
599}
600
601impl HKWorkoutType {
603 extern_methods!(
604 #[unsafe(method(new))]
605 #[unsafe(method_family = new)]
606 pub unsafe fn new() -> Retained<Self>;
607 );
608}
609
610extern_class!(
611 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
615 #[derive(Debug, PartialEq, Eq, Hash)]
616 pub struct HKSeriesType;
617);
618
619unsafe impl Send for HKSeriesType {}
620
621unsafe impl Sync for HKSeriesType {}
622
623extern_conformance!(
624 unsafe impl NSCoding for HKSeriesType {}
625);
626
627extern_conformance!(
628 unsafe impl NSCopying for HKSeriesType {}
629);
630
631unsafe impl CopyingHelper for HKSeriesType {
632 type Result = Self;
633}
634
635extern_conformance!(
636 unsafe impl NSObjectProtocol for HKSeriesType {}
637);
638
639extern_conformance!(
640 unsafe impl NSSecureCoding for HKSeriesType {}
641);
642
643impl HKSeriesType {
644 extern_methods!(
645 #[unsafe(method(workoutRouteType))]
646 #[unsafe(method_family = none)]
647 pub unsafe fn workoutRouteType() -> Retained<Self>;
648
649 #[unsafe(method(heartbeatSeriesType))]
650 #[unsafe(method_family = none)]
651 pub unsafe fn heartbeatSeriesType() -> Retained<Self>;
652 );
653}
654
655impl HKSeriesType {
657 extern_methods!(
658 #[unsafe(method(init))]
659 #[unsafe(method_family = init)]
660 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
661 );
662}
663
664impl HKSeriesType {
666 extern_methods!(
667 #[unsafe(method(new))]
668 #[unsafe(method_family = new)]
669 pub unsafe fn new() -> Retained<Self>;
670 );
671}
672
673extern_class!(
674 #[unsafe(super(HKObjectType, NSObject))]
678 #[derive(Debug, PartialEq, Eq, Hash)]
679 pub struct HKActivitySummaryType;
680);
681
682unsafe impl Send for HKActivitySummaryType {}
683
684unsafe impl Sync for HKActivitySummaryType {}
685
686extern_conformance!(
687 unsafe impl NSCoding for HKActivitySummaryType {}
688);
689
690extern_conformance!(
691 unsafe impl NSCopying for HKActivitySummaryType {}
692);
693
694unsafe impl CopyingHelper for HKActivitySummaryType {
695 type Result = Self;
696}
697
698extern_conformance!(
699 unsafe impl NSObjectProtocol for HKActivitySummaryType {}
700);
701
702extern_conformance!(
703 unsafe impl NSSecureCoding for HKActivitySummaryType {}
704);
705
706impl HKActivitySummaryType {
707 extern_methods!();
708}
709
710impl HKActivitySummaryType {
712 extern_methods!(
713 #[unsafe(method(init))]
714 #[unsafe(method_family = init)]
715 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
716 );
717}
718
719impl HKActivitySummaryType {
721 extern_methods!(
722 #[unsafe(method(new))]
723 #[unsafe(method_family = new)]
724 pub unsafe fn new() -> Retained<Self>;
725 );
726}
727
728extern_class!(
729 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
733 #[derive(Debug, PartialEq, Eq, Hash)]
734 pub struct HKAudiogramSampleType;
735);
736
737unsafe impl Send for HKAudiogramSampleType {}
738
739unsafe impl Sync for HKAudiogramSampleType {}
740
741extern_conformance!(
742 unsafe impl NSCoding for HKAudiogramSampleType {}
743);
744
745extern_conformance!(
746 unsafe impl NSCopying for HKAudiogramSampleType {}
747);
748
749unsafe impl CopyingHelper for HKAudiogramSampleType {
750 type Result = Self;
751}
752
753extern_conformance!(
754 unsafe impl NSObjectProtocol for HKAudiogramSampleType {}
755);
756
757extern_conformance!(
758 unsafe impl NSSecureCoding for HKAudiogramSampleType {}
759);
760
761impl HKAudiogramSampleType {
762 extern_methods!();
763}
764
765impl HKAudiogramSampleType {
767 extern_methods!(
768 #[unsafe(method(init))]
769 #[unsafe(method_family = init)]
770 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
771 );
772}
773
774impl HKAudiogramSampleType {
776 extern_methods!(
777 #[unsafe(method(new))]
778 #[unsafe(method_family = new)]
779 pub unsafe fn new() -> Retained<Self>;
780 );
781}
782
783extern_class!(
784 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
788 #[derive(Debug, PartialEq, Eq, Hash)]
789 pub struct HKElectrocardiogramType;
790);
791
792unsafe impl Send for HKElectrocardiogramType {}
793
794unsafe impl Sync for HKElectrocardiogramType {}
795
796extern_conformance!(
797 unsafe impl NSCoding for HKElectrocardiogramType {}
798);
799
800extern_conformance!(
801 unsafe impl NSCopying for HKElectrocardiogramType {}
802);
803
804unsafe impl CopyingHelper for HKElectrocardiogramType {
805 type Result = Self;
806}
807
808extern_conformance!(
809 unsafe impl NSObjectProtocol for HKElectrocardiogramType {}
810);
811
812extern_conformance!(
813 unsafe impl NSSecureCoding for HKElectrocardiogramType {}
814);
815
816impl HKElectrocardiogramType {
817 extern_methods!();
818}
819
820impl HKElectrocardiogramType {
822 extern_methods!(
823 #[unsafe(method(init))]
824 #[unsafe(method_family = init)]
825 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
826 );
827}
828
829impl HKElectrocardiogramType {
831 extern_methods!(
832 #[unsafe(method(new))]
833 #[unsafe(method_family = new)]
834 pub unsafe fn new() -> Retained<Self>;
835 );
836}
837
838extern_class!(
839 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
843 #[derive(Debug, PartialEq, Eq, Hash)]
844 pub struct HKMedicationDoseEventType;
845);
846
847unsafe impl Send for HKMedicationDoseEventType {}
848
849unsafe impl Sync for HKMedicationDoseEventType {}
850
851extern_conformance!(
852 unsafe impl NSCoding for HKMedicationDoseEventType {}
853);
854
855extern_conformance!(
856 unsafe impl NSCopying for HKMedicationDoseEventType {}
857);
858
859unsafe impl CopyingHelper for HKMedicationDoseEventType {
860 type Result = Self;
861}
862
863extern_conformance!(
864 unsafe impl NSObjectProtocol for HKMedicationDoseEventType {}
865);
866
867extern_conformance!(
868 unsafe impl NSSecureCoding for HKMedicationDoseEventType {}
869);
870
871impl HKMedicationDoseEventType {
872 extern_methods!();
873}
874
875impl HKMedicationDoseEventType {
877 extern_methods!(
878 #[unsafe(method(init))]
879 #[unsafe(method_family = init)]
880 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
881 );
882}
883
884impl HKMedicationDoseEventType {
886 extern_methods!(
887 #[unsafe(method(new))]
888 #[unsafe(method_family = new)]
889 pub unsafe fn new() -> Retained<Self>;
890 );
891}
892
893extern_class!(
894 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
898 #[derive(Debug, PartialEq, Eq, Hash)]
899 pub struct HKPrescriptionType;
900);
901
902unsafe impl Send for HKPrescriptionType {}
903
904unsafe impl Sync for HKPrescriptionType {}
905
906extern_conformance!(
907 unsafe impl NSCoding for HKPrescriptionType {}
908);
909
910extern_conformance!(
911 unsafe impl NSCopying for HKPrescriptionType {}
912);
913
914unsafe impl CopyingHelper for HKPrescriptionType {
915 type Result = Self;
916}
917
918extern_conformance!(
919 unsafe impl NSObjectProtocol for HKPrescriptionType {}
920);
921
922extern_conformance!(
923 unsafe impl NSSecureCoding for HKPrescriptionType {}
924);
925
926impl HKPrescriptionType {
927 extern_methods!();
928}
929
930impl HKPrescriptionType {
932 extern_methods!(
933 #[unsafe(method(init))]
934 #[unsafe(method_family = init)]
935 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
936 );
937}
938
939impl HKPrescriptionType {
941 extern_methods!(
942 #[unsafe(method(new))]
943 #[unsafe(method_family = new)]
944 pub unsafe fn new() -> Retained<Self>;
945 );
946}
947
948extern_class!(
949 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
953 #[derive(Debug, PartialEq, Eq, Hash)]
954 pub struct HKScoredAssessmentType;
955);
956
957unsafe impl Send for HKScoredAssessmentType {}
958
959unsafe impl Sync for HKScoredAssessmentType {}
960
961extern_conformance!(
962 unsafe impl NSCoding for HKScoredAssessmentType {}
963);
964
965extern_conformance!(
966 unsafe impl NSCopying for HKScoredAssessmentType {}
967);
968
969unsafe impl CopyingHelper for HKScoredAssessmentType {
970 type Result = Self;
971}
972
973extern_conformance!(
974 unsafe impl NSObjectProtocol for HKScoredAssessmentType {}
975);
976
977extern_conformance!(
978 unsafe impl NSSecureCoding for HKScoredAssessmentType {}
979);
980
981impl HKScoredAssessmentType {
982 extern_methods!();
983}
984
985impl HKScoredAssessmentType {
987 extern_methods!(
988 #[unsafe(method(init))]
989 #[unsafe(method_family = init)]
990 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
991 );
992}
993
994impl HKScoredAssessmentType {
996 extern_methods!(
997 #[unsafe(method(new))]
998 #[unsafe(method_family = new)]
999 pub unsafe fn new() -> Retained<Self>;
1000 );
1001}
1002
1003extern_class!(
1004 #[unsafe(super(HKSampleType, HKObjectType, NSObject))]
1008 #[derive(Debug, PartialEq, Eq, Hash)]
1009 pub struct HKStateOfMindType;
1010);
1011
1012unsafe impl Send for HKStateOfMindType {}
1013
1014unsafe impl Sync for HKStateOfMindType {}
1015
1016extern_conformance!(
1017 unsafe impl NSCoding for HKStateOfMindType {}
1018);
1019
1020extern_conformance!(
1021 unsafe impl NSCopying for HKStateOfMindType {}
1022);
1023
1024unsafe impl CopyingHelper for HKStateOfMindType {
1025 type Result = Self;
1026}
1027
1028extern_conformance!(
1029 unsafe impl NSObjectProtocol for HKStateOfMindType {}
1030);
1031
1032extern_conformance!(
1033 unsafe impl NSSecureCoding for HKStateOfMindType {}
1034);
1035
1036impl HKStateOfMindType {
1037 extern_methods!();
1038}
1039
1040impl HKStateOfMindType {
1042 extern_methods!(
1043 #[unsafe(method(init))]
1044 #[unsafe(method_family = init)]
1045 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1046 );
1047}
1048
1049impl HKStateOfMindType {
1051 extern_methods!(
1052 #[unsafe(method(new))]
1053 #[unsafe(method_family = new)]
1054 pub unsafe fn new() -> Retained<Self>;
1055 );
1056}
1057
1058extern_class!(
1059 #[unsafe(super(HKObjectType, NSObject))]
1063 #[derive(Debug, PartialEq, Eq, Hash)]
1064 pub struct HKUserAnnotatedMedicationType;
1065);
1066
1067unsafe impl Send for HKUserAnnotatedMedicationType {}
1068
1069unsafe impl Sync for HKUserAnnotatedMedicationType {}
1070
1071extern_conformance!(
1072 unsafe impl NSCoding for HKUserAnnotatedMedicationType {}
1073);
1074
1075extern_conformance!(
1076 unsafe impl NSCopying for HKUserAnnotatedMedicationType {}
1077);
1078
1079unsafe impl CopyingHelper for HKUserAnnotatedMedicationType {
1080 type Result = Self;
1081}
1082
1083extern_conformance!(
1084 unsafe impl NSObjectProtocol for HKUserAnnotatedMedicationType {}
1085);
1086
1087extern_conformance!(
1088 unsafe impl NSSecureCoding for HKUserAnnotatedMedicationType {}
1089);
1090
1091impl HKUserAnnotatedMedicationType {
1092 extern_methods!();
1093}
1094
1095impl HKUserAnnotatedMedicationType {
1097 extern_methods!(
1098 #[unsafe(method(init))]
1099 #[unsafe(method_family = init)]
1100 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
1101 );
1102}
1103
1104impl HKUserAnnotatedMedicationType {
1106 extern_methods!(
1107 #[unsafe(method(new))]
1108 #[unsafe(method_family = new)]
1109 pub unsafe fn new() -> Retained<Self>;
1110 );
1111}