1
1
// Code generated from Pkl module `Enums`. DO NOT EDIT.
2
- import PklSwift
2
+ @ preconcurrency import PklSwift
3
3
4
- public enum Enums { }
4
+ public enum Enums : Sendable { }
5
5
6
6
extension Enums {
7
7
/// City is one of these four fantastic cities
8
- public enum City : String , CaseIterable , CodingKeyRepresentable , Decodable , Hashable {
8
+ public enum City : String , CaseIterable , CodingKeyRepresentable , Decodable , Hashable , Sendable {
9
9
case sanFrancisco = " San Francisco "
10
10
case london = " London "
11
11
case zurich = " Zurich "
12
12
case cupertino = " Cupertino "
13
13
}
14
14
15
15
/// Animal is either a horse, monkey, or zebra
16
- public enum Animal : Decodable , Hashable {
16
+ public enum Animal : Decodable , Hashable , Sendable {
17
17
case horse( Horse )
18
18
case zebra( Zebra )
19
19
case monkey( Monkey )
@@ -41,7 +41,7 @@ extension Enums {
41
41
}
42
42
43
43
/// Either a dictionary or an array.
44
- public enum DictOrArray : Decodable , Hashable {
44
+ public enum DictOrArray : Decodable , Hashable , Sendable {
45
45
case dictionaryStringString( [ String : String ] )
46
46
case arrayString( [ String ] )
47
47
@@ -65,7 +65,7 @@ extension Enums {
65
65
}
66
66
}
67
67
68
- public enum HorseOrBug : Decodable , Hashable {
68
+ public enum HorseOrBug : Decodable , Hashable , Sendable {
69
69
case horse( Horse )
70
70
case string( String )
71
71
case string( String )
@@ -92,7 +92,7 @@ extension Enums {
92
92
}
93
93
}
94
94
95
- public enum MaybeHorseOrDefinitelyZebra : Decodable , Hashable {
95
+ public enum MaybeHorseOrDefinitelyZebra : Decodable , Hashable , Sendable {
96
96
case horse( Horse ? )
97
97
case zebra( Zebra )
98
98
@@ -116,7 +116,7 @@ extension Enums {
116
116
}
117
117
}
118
118
119
- public struct Module : PklRegisteredType , Decodable , Hashable {
119
+ public struct Module : PklRegisteredType , Decodable , Hashable , Sendable {
120
120
public static let registeredIdentifier : String = " Enums "
121
121
122
122
/// City of tomorrow!
@@ -148,7 +148,7 @@ extension Enums {
148
148
}
149
149
}
150
150
151
- public struct Horse : PklRegisteredType , Decodable , Hashable {
151
+ public struct Horse : PklRegisteredType , Decodable , Hashable , Sendable {
152
152
public static let registeredIdentifier : String = " Enums#Horse "
153
153
154
154
public var neigh : Bool
@@ -158,7 +158,7 @@ extension Enums {
158
158
}
159
159
}
160
160
161
- public struct Zebra : PklRegisteredType , Decodable , Hashable {
161
+ public struct Zebra : PklRegisteredType , Decodable , Hashable , Sendable {
162
162
public static let registeredIdentifier : String = " Enums#Zebra "
163
163
164
164
public var stripes : String
@@ -168,7 +168,7 @@ extension Enums {
168
168
}
169
169
}
170
170
171
- public struct Monkey : PklRegisteredType , Decodable , Hashable {
171
+ public struct Monkey : PklRegisteredType , Decodable , Hashable , Sendable {
172
172
public static let registeredIdentifier : String = " Enums#Monkey "
173
173
174
174
public var tail : String
0 commit comments