objc2-health-kit 0.3.2

Bindings to the HealthKit framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

/// This category value is to be used for types which don't have a specific value defined.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalue?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValue(pub NSInteger);
impl HKCategoryValue {
    #[doc(alias = "HKCategoryValueNotApplicable")]
    pub const NotApplicable: Self = Self(0);
}

unsafe impl Encode for HKCategoryValue {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValue {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values to indicate the direction of appetite changes.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueAppetiteChanges(pub NSInteger);
impl HKCategoryValueAppetiteChanges {
    #[doc(alias = "HKCategoryValueAppetiteChangesUnspecified")]
    pub const Unspecified: Self = Self(0);
    #[doc(alias = "HKCategoryValueAppetiteChangesNoChange")]
    pub const NoChange: Self = Self(1);
    #[doc(alias = "HKCategoryValueAppetiteChangesDecreased")]
    pub const Decreased: Self = Self(2);
    #[doc(alias = "HKCategoryValueAppetiteChangesIncreased")]
    pub const Increased: Self = Self(3);
}

unsafe impl Encode for HKCategoryValueAppetiteChanges {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueAppetiteChanges {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values that may be used for HKCategorySamples with the HKCategoryTypeIdentifierAppleStandHour
/// type.
///
///
/// the sample.
///
/// continuous minute during the sample.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueapplestandhour?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueAppleStandHour(pub NSInteger);
impl HKCategoryValueAppleStandHour {
    #[doc(alias = "HKCategoryValueAppleStandHourStood")]
    pub const Stood: Self = Self(0);
    #[doc(alias = "HKCategoryValueAppleStandHourIdle")]
    pub const Idle: Self = Self(1);
}

unsafe impl Encode for HKCategoryValueAppleStandHour {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueAppleStandHour {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values that may be used for HKCategorySamples with the
/// HKCategoryTypeIdentifierAppleWalkingSteadinessEvent type.
///
///
/// Steadiness events associated with the user's
/// walking steadiness being low.
///
/// Steadiness events associated with the user's
/// walking steadiness being very low.
///
/// Steadiness events associated with the user's
/// walking steadiness remaining low over a
/// significant time period.
///
/// Steadiness events associated with the user's
/// walking steadiness remaining very low over a
/// significant time period.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueapplewalkingsteadinessevent?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueAppleWalkingSteadinessEvent(pub NSInteger);
impl HKCategoryValueAppleWalkingSteadinessEvent {
    #[doc(alias = "HKCategoryValueAppleWalkingSteadinessEventInitialLow")]
    pub const InitialLow: Self = Self(1);
    #[doc(alias = "HKCategoryValueAppleWalkingSteadinessEventInitialVeryLow")]
    pub const InitialVeryLow: Self = Self(2);
    #[doc(alias = "HKCategoryValueAppleWalkingSteadinessEventRepeatLow")]
    pub const RepeatLow: Self = Self(3);
    #[doc(alias = "HKCategoryValueAppleWalkingSteadinessEventRepeatVeryLow")]
    pub const RepeatVeryLow: Self = Self(4);
}

unsafe impl Encode for HKCategoryValueAppleWalkingSteadinessEvent {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueAppleWalkingSteadinessEvent {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values that may be used for HKCategorySamples with the
/// HKCategoryTypeIdentifierCervicalMucusQuality type.
///
/// These cervical mucus quality values are ordered from least-fertile (Dry) to most-fertile (EggWhite).
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueCervicalMucusQuality(pub NSInteger);
impl HKCategoryValueCervicalMucusQuality {
    #[doc(alias = "HKCategoryValueCervicalMucusQualityDry")]
    pub const Dry: Self = Self(1);
    #[doc(alias = "HKCategoryValueCervicalMucusQualitySticky")]
    pub const Sticky: Self = Self(2);
    #[doc(alias = "HKCategoryValueCervicalMucusQualityCreamy")]
    pub const Creamy: Self = Self(3);
    #[doc(alias = "HKCategoryValueCervicalMucusQualityWatery")]
    pub const Watery: Self = Self(4);
    #[doc(alias = "HKCategoryValueCervicalMucusQualityEggWhite")]
    pub const EggWhite: Self = Self(5);
}

unsafe impl Encode for HKCategoryValueCervicalMucusQuality {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueCervicalMucusQuality {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values to indicate the type of contraceptive.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluecontraceptive?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueContraceptive(pub NSInteger);
impl HKCategoryValueContraceptive {
    #[doc(alias = "HKCategoryValueContraceptiveUnspecified")]
    pub const Unspecified: Self = Self(1);
    #[doc(alias = "HKCategoryValueContraceptiveImplant")]
    pub const Implant: Self = Self(2);
    #[doc(alias = "HKCategoryValueContraceptiveInjection")]
    pub const Injection: Self = Self(3);
    #[doc(alias = "HKCategoryValueContraceptiveIntrauterineDevice")]
    pub const IntrauterineDevice: Self = Self(4);
    #[doc(alias = "HKCategoryValueContraceptiveIntravaginalRing")]
    pub const IntravaginalRing: Self = Self(5);
    #[doc(alias = "HKCategoryValueContraceptiveOral")]
    pub const Oral: Self = Self(6);
    #[doc(alias = "HKCategoryValueContraceptivePatch")]
    pub const Patch: Self = Self(7);
}

unsafe impl Encode for HKCategoryValueContraceptive {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueContraceptive {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Specifies the kind of environmental audio exposure event associated with the sample.
///
///
/// events associated with the user being
/// exposed to a loud environment during a
/// short timespan.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueenvironmentalaudioexposureevent?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueEnvironmentalAudioExposureEvent(pub NSInteger);
impl HKCategoryValueEnvironmentalAudioExposureEvent {
    #[doc(alias = "HKCategoryValueEnvironmentalAudioExposureEventMomentaryLimit")]
    pub const MomentaryLimit: Self = Self(1);
}

unsafe impl Encode for HKCategoryValueEnvironmentalAudioExposureEvent {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueEnvironmentalAudioExposureEvent {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Specifies the kind of headphone audio exposure event associated with the sample.
///
///
/// associated with the user being exposed to
/// significant audio levels throught a
/// seven-day period.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueheadphoneaudioexposureevent?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueHeadphoneAudioExposureEvent(pub NSInteger);
impl HKCategoryValueHeadphoneAudioExposureEvent {
    #[doc(alias = "HKCategoryValueHeadphoneAudioExposureEventSevenDayLimit")]
    pub const SevenDayLimit: Self = Self(1);
}

unsafe impl Encode for HKCategoryValueHeadphoneAudioExposureEvent {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueHeadphoneAudioExposureEvent {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Specifies the type of cardio fitness event.
///
///
/// measurement was recorded that falls into the "Low"
/// fitness classification
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluelowcardiofitnessevent?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueLowCardioFitnessEvent(pub NSInteger);
impl HKCategoryValueLowCardioFitnessEvent {
    #[doc(alias = "HKCategoryValueLowCardioFitnessEventLowFitness")]
    pub const LowFitness: Self = Self(1);
}

unsafe impl Encode for HKCategoryValueLowCardioFitnessEvent {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueLowCardioFitnessEvent {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values to indicate the type of menstrual flow.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow?language=objc)
// NS_ENUM
#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueMenstrualFlow(pub NSInteger);
impl HKCategoryValueMenstrualFlow {
    #[doc(alias = "HKCategoryValueMenstrualFlowUnspecified")]
    #[deprecated]
    pub const Unspecified: Self = Self(1);
    #[doc(alias = "HKCategoryValueMenstrualFlowLight")]
    #[deprecated]
    pub const Light: Self = Self(2);
    #[doc(alias = "HKCategoryValueMenstrualFlowMedium")]
    #[deprecated]
    pub const Medium: Self = Self(3);
    #[doc(alias = "HKCategoryValueMenstrualFlowHeavy")]
    #[deprecated]
    pub const Heavy: Self = Self(4);
    #[doc(alias = "HKCategoryValueMenstrualFlowNone")]
    #[deprecated]
    pub const None: Self = Self(5);
}

unsafe impl Encode for HKCategoryValueMenstrualFlow {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueMenstrualFlow {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values that may be used for HKCategorySamples with the
/// HKCategoryTypeIdentifierOvulationTestResult type.
///
/// This category value tracks the result of a home ovulation test that use surges in hormone levels to
/// indicate fertility.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueOvulationTestResult(pub NSInteger);
impl HKCategoryValueOvulationTestResult {
    #[doc(alias = "HKCategoryValueOvulationTestResultNegative")]
    pub const Negative: Self = Self(1);
    #[doc(alias = "HKCategoryValueOvulationTestResultLuteinizingHormoneSurge")]
    pub const LuteinizingHormoneSurge: Self = Self(2);
    #[doc(alias = "HKCategoryValueOvulationTestResultPositive")]
    #[deprecated]
    pub const Positive: Self = Self(HKCategoryValueOvulationTestResult::LuteinizingHormoneSurge.0);
    #[doc(alias = "HKCategoryValueOvulationTestResultIndeterminate")]
    pub const Indeterminate: Self = Self(3);
    #[doc(alias = "HKCategoryValueOvulationTestResultEstrogenSurge")]
    pub const EstrogenSurge: Self = Self(4);
}

unsafe impl Encode for HKCategoryValueOvulationTestResult {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueOvulationTestResult {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values that may be used for HKCategorySamples with the
/// HKCategoryTypeIdentifierPregnancyTestResult type.
///
/// This category value tracks the result of a home pregnancy test that checks for presence of the human
/// chorionic gonadotrophin (hCG) hormone in urine to confirm pregnancy.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValuePregnancyTestResult(pub NSInteger);
impl HKCategoryValuePregnancyTestResult {
    #[doc(alias = "HKCategoryValuePregnancyTestResultNegative")]
    pub const Negative: Self = Self(1);
    #[doc(alias = "HKCategoryValuePregnancyTestResultPositive")]
    pub const Positive: Self = Self(2);
    #[doc(alias = "HKCategoryValuePregnancyTestResultIndeterminate")]
    pub const Indeterminate: Self = Self(3);
}

unsafe impl Encode for HKCategoryValuePregnancyTestResult {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValuePregnancyTestResult {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values to indicate whether a data type is present or not.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValuePresence(pub NSInteger);
impl HKCategoryValuePresence {
    #[doc(alias = "HKCategoryValuePresencePresent")]
    pub const Present: Self = Self(0);
    #[doc(alias = "HKCategoryValuePresenceNotPresent")]
    pub const NotPresent: Self = Self(1);
}

unsafe impl Encode for HKCategoryValuePresence {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValuePresence {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values that may be used for HKCategorySamples with the
/// HKCategoryTypeIdentifierProgesteroneTestResult type.
///
/// This category value tracks the result of a home ovulation confirmation test that use surges in hormone
/// levels to confirm if ovulation has occurred.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueprogesteronetestresult?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueProgesteroneTestResult(pub NSInteger);
impl HKCategoryValueProgesteroneTestResult {
    #[doc(alias = "HKCategoryValueProgesteroneTestResultNegative")]
    pub const Negative: Self = Self(1);
    #[doc(alias = "HKCategoryValueProgesteroneTestResultPositive")]
    pub const Positive: Self = Self(2);
    #[doc(alias = "HKCategoryValueProgesteroneTestResultIndeterminate")]
    pub const Indeterminate: Self = Self(3);
}

unsafe impl Encode for HKCategoryValueProgesteroneTestResult {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueProgesteroneTestResult {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values to indicate the severity of a symptom.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueSeverity(pub NSInteger);
impl HKCategoryValueSeverity {
    #[doc(alias = "HKCategoryValueSeverityUnspecified")]
    pub const Unspecified: Self = Self(0);
    #[doc(alias = "HKCategoryValueSeverityNotPresent")]
    pub const NotPresent: Self = Self(1);
    #[doc(alias = "HKCategoryValueSeverityMild")]
    pub const Mild: Self = Self(2);
    #[doc(alias = "HKCategoryValueSeverityModerate")]
    pub const Moderate: Self = Self(3);
    #[doc(alias = "HKCategoryValueSeveritySevere")]
    pub const Severe: Self = Self(4);
}

unsafe impl Encode for HKCategoryValueSeverity {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueSeverity {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values that may be used for HKCategorySamples with the HKCategoryTypeIdentifierSleepAnalysis
/// type.
///
/// To represent the user being both in bed and asleep, use two or more samples with overlapping times. By
/// comparing the start and end times of these samples, it is possible to calculate a number of secondary
/// statistics:
/// 1) The amount of time it took for the user to fall asleep
/// 2) The percentage of time in bed that the user actually spent sleeping,
/// 3) The number of times the user woke while in bed
/// 4) The total amount of time spent both in bed and asleep.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueSleepAnalysis(pub NSInteger);
impl HKCategoryValueSleepAnalysis {
    #[doc(alias = "HKCategoryValueSleepAnalysisInBed")]
    pub const InBed: Self = Self(0);
    #[doc(alias = "HKCategoryValueSleepAnalysisAsleepUnspecified")]
    pub const AsleepUnspecified: Self = Self(1);
    #[doc(alias = "HKCategoryValueSleepAnalysisAsleep")]
    #[deprecated]
    pub const Asleep: Self = Self(HKCategoryValueSleepAnalysis::AsleepUnspecified.0);
    #[doc(alias = "HKCategoryValueSleepAnalysisAwake")]
    pub const Awake: Self = Self(2);
    #[doc(alias = "HKCategoryValueSleepAnalysisAsleepCore")]
    pub const AsleepCore: Self = Self(3);
    #[doc(alias = "HKCategoryValueSleepAnalysisAsleepDeep")]
    pub const AsleepDeep: Self = Self(4);
    #[doc(alias = "HKCategoryValueSleepAnalysisAsleepREM")]
    pub const AsleepREM: Self = Self(5);
}

unsafe impl Encode for HKCategoryValueSleepAnalysis {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueSleepAnalysis {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Set of values to indicate the type of bleeding.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvaluevaginalbleeding?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueVaginalBleeding(pub NSInteger);
impl HKCategoryValueVaginalBleeding {
    #[doc(alias = "HKCategoryValueVaginalBleedingUnspecified")]
    pub const Unspecified: Self = Self(1);
    #[doc(alias = "HKCategoryValueVaginalBleedingLight")]
    pub const Light: Self = Self(2);
    #[doc(alias = "HKCategoryValueVaginalBleedingMedium")]
    pub const Medium: Self = Self(3);
    #[doc(alias = "HKCategoryValueVaginalBleedingHeavy")]
    pub const Heavy: Self = Self(4);
    #[doc(alias = "HKCategoryValueVaginalBleedingNone")]
    pub const None: Self = Self(5);
}

unsafe impl Encode for HKCategoryValueVaginalBleeding {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueVaginalBleeding {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// Specifies the kind of audio exposure event associated with the sample.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkcategoryvalueaudioexposureevent?language=objc)
// NS_ENUM
#[deprecated]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct HKCategoryValueAudioExposureEvent(pub NSInteger);
impl HKCategoryValueAudioExposureEvent {
    #[doc(alias = "HKCategoryValueAudioExposureEventLoudEnvironment")]
    #[deprecated]
    pub const LoudEnvironment: Self = Self(1);
}

unsafe impl Encode for HKCategoryValueAudioExposureEvent {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for HKCategoryValueAudioExposureEvent {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}