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
use serde::{Deserialize, Serialize};
/// Health
#[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, Eq)]
pub struct Health {
/// A Boolean value that indicates whether the app may request user authorization to
/// access health and activity data that appears in the Health app.
///
/// To add this entitlement to your app, enable the HealthKit capability in Xcode.
///
/// ## Availability
/// * iOS 8.0+
///
/// ## Framework
/// * HealthKit
#[serde(
rename = "com.apple.developer.healthkit",
serialize_with = "crate::serialize_option",
skip_serializing_if = "Option::is_none"
)]
pub healthkit: Option<bool>,
/// Health data types that require additional permission.
///
/// The HealthKit Entitlement provides access to most HealthKit data types. However,
/// because of their highly sensitive nature, some data types require additional
/// entitlements. The HealthKit Capabilities Entitlement provides access to these
/// data types.
///
/// To add this entitlement to your app, first enable the HealthKit capability in
/// Xcode, and then check any values that you want to add to the HealthKit
/// Capabilities Entitlement.
///
/// Only add values for data types that your app needs to access.
/// App Review may reject apps that don’t use the data appropriately.
/// For more information, see the Health and Health Research section of the App Store
/// Review Guidelines.
///
/// ## Availability
/// * iOS 8.0+
///
/// ## Framework
/// * HealthKit
#[serde(
rename = "com.apple.developer.healthkit.access",
skip_serializing_if = "Option::is_none",
serialize_with = "crate::serialize_vec_enum_option"
)]
pub healthkit_access: Option<Vec<HealthKitCapabilities>>,
}
/// Health Kit Capabilities
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub enum HealthKitCapabilities {
/// The app can request access to FHIR-backed clinical records.
#[serde(rename = "health-records")]
HealthRecords,
}