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
use serde::{Deserialize, Serialize};
/// iCloud
#[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, Eq)]
pub struct ICloud {
/// The container identifiers for the iCloud development environment.
///
/// ## Availability
/// * iOS 3.0+
/// * macOS 10.7+
/// * tvOS 9.0+
/// * watchOS 2.0+
///
/// ## Framework
/// * Foundation
#[serde(
rename = "com.apple.developer.icloud-container-development-container-identifiers",
serialize_with = "crate::serialize_option",
skip_serializing_if = "Option::is_none"
)]
pub icloud_container_development_container_identifiers: Option<Vec<String>>,
/// The development or production environment to use for the iCloud containers.
///
/// ## Availability
/// * iOS 3.0+
/// * macOS 10.7+
/// * tvOS 9.0+
/// * watchOS 2.0+
///
/// ## Framework
/// * Foundation
#[serde(
rename = "com.apple.developer.icloud-container-environment",
skip_serializing_if = "Option::is_none",
serialize_with = "crate::serialize_enum_option"
)]
pub icloud_container_environment: Option<ICloudContainerEnvironment>,
/// The container identifiers for the iCloud production environment.
///
/// ## Availability
/// * iOS 3.0+
/// * macOS 10.7+
/// * tvOS 9.0+
/// * watchOS 2.0+
///
/// ## Framework
/// * Foundation
#[serde(
rename = "com.apple.developer.icloud-container-identifiers",
serialize_with = "crate::serialize_option",
skip_serializing_if = "Option::is_none"
)]
pub icloud_container_identifiers: Option<Vec<String>>,
/// The iCloud services used by the app.
///
/// To add this entitlement to your app, enable the iCloud capability and the iCloud
/// Documents or CloudKit service in Xcode.
///
/// ## Availability
/// * iOS 3.0+
/// * macOS 10.7+
/// * tvOS 9.0+
/// * watchOS 2.0+
///
/// ## Framework
/// * Foundation
#[serde(
rename = "com.apple.developer.icloud-services",
skip_serializing_if = "Option::is_none",
serialize_with = "crate::serialize_vec_enum_option"
)]
pub icloud_services: Option<Vec<ICloudServices>>,
/// The container identifier to use for iCloud key-value storage.
///
/// To add this entitlement to your app, enable the iCloud capability and “Key-value
/// storage” service in Xcode.
///
/// ## Availability
/// * iOS 3.0+
/// * macOS 10.7+
/// * tvOS 9.0+
/// * watchOS 2.0+
///
/// ## Framework
/// * Foundation
#[serde(
rename = "com.apple.developer.ubiquity-kvstore-identifier",
serialize_with = "crate::serialize_option",
skip_serializing_if = "Option::is_none"
)]
pub icloud_key_value_store: Option<String>,
}
/// iCloud Container Environment
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub enum ICloudContainerEnvironment {
#[serde(rename = "Development")]
Development,
#[serde(rename = "Production")]
Production,
}
/// iCloud Services
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub enum ICloudServices {
#[serde(rename = "CloudDocuments")]
CloudDocuments,
#[serde(rename = "CloudKit")]
CloudKit,
}