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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
pub struct Item {
    pub content_type: ContentType,
    /// Defines the unique ID you are providing for this item. This ID must be case-sensitive. 1 to 255 characters in length. Example: CP012391
    ///
    /// Note: This must be unique across all content types; no two items should have the same contentId even if their contentType is different.
    ///
    /// The contentId for a given content item must be consistent and cannot be changed.
    pub content_id: String,
    /// Last item data update date.
    ///
    /// YYYY-MM- DDThh:mm:ss.sTZD ISO 8601 Format
    ///
    /// Note: If +/- offset is not provided the time zone will be assumed to be GMT.
    /// - YYYY is four-digit year
    /// - MM is two-digit month (01=January, etc.)
    /// - DD is two-digit day of month (01 through 31)
    /// - hh is two digits of hour (00 through 23) (am/pm not allowed)
    /// - mm is two digits of minute (00 through 59)
    /// - ss is two digits of second (00 through 59)
    /// - s is one or more digits representing a decimal fraction of a second
    /// - TZD is time zone designator (Z or +hh:mm or -hh:mm)
    pub pub_date: chrono::naive::NaiveDate,
    /// Identifier used to group duplicate content items. 1 to 255 characters in length.
    pub content_group_id: String,
    /// 1 to 255 characters in length
    pub title: Vec<Title>,
    /// 0 to 4000 characters in length.
    pub description: Option<Vec<Description>>,
    pub genre: Option<Vec<Genre>>,
    /// Required for certain geographic regions. Contact your Apple Technical Partner to get requirements for your region.
    /// Sets the rating for this item.
    pub rating: Option<Vec<Rating>>,
    pub advisory: Option<Vec<Advisory>>,
    pub credit: Option<Vec<Credit>>,
    pub external_content_id: Option<Vec<ExternalId>>,
    pub artwork: Option<Vec<Artwork>>,
    /// Specifies if this content is the partner’s original program. This should be set to true only for content items originally produced by or for the partner. When missing, this will be defaulted to false.
    pub is_original: Option<bool>,
    /// Specifies if this contains content that is generally thought to be inappropriate for viewing by children and/or suitable for after-hours viewing. When missing, this will be defaulted to false.
    ///
    /// Note: Explicit/Adult-Only content items must be excluded from the feed unless explicitly permitted in your business agreements with Apple.
    pub is_adult_only_content: bool,
    /// * Required for certain geographic regions. Contact your Apple Technical Partner to get requirements for your region.
    ///
    /// Specifies the original spoken language(s) for this content item. Multiple values should be provided in order of precedence with the primary spoken language being first.
    ///
    /// The value should be specified as a string representing a locale in BCP-47 Format.
    pub original_spoken_locale: Option<Vec<String>>,
    /// * Required for certain geographic regions. Contact your Apple Technical Partner to get requirements for your region.
    ///
    /// The country that is the primary source of funds for the content’s production. This should be the country that provided most of the funds (for example, from national lotteries and other subsidies). Multiple values should be provided in order of precedence with the primary country being first.
    ///
    /// The value of this element must be the 2-letter country code for the country of production as defined in the ISO 3166 International Standard.
    ///
    /// Note: This is not the same as the countryOfOrigin, which is the country where the content originates from in accordance with applicable law.
    pub production_country: Option<Vec<String>>,
    /// * Required for certain geographic regions. Contact your Apple Technical Partner to get requirements for your region.
    ///
    /// The country where the content originates from, for example, the country where the the content was primarily produced, where the main authors and workers reside, where the main producer is established etc. Such determination must be made in accordance with applicable law. Multiple values should be provided in order of precedence with the primary country being first.
    ///
    /// The value of this element must be the 2-letter country code for the country of production as defined in the ISO 3166 International Standard.
    ///
    /// Note: This may differ from the productionCountry, which is the country that provided most of the funds for production.
    pub country_of_origin: Option<Vec<String>>,
    /// Statement that indicates the exclusive legal right for this content.
    ///
    /// 0 to 4000 characters in length.
    ///
    /// Note: The appropriate copyright symbol (©) will be automatically added and should not be included in the attribute value.
    pub copyright_line: Option<Vec<String>>,
    /// Used to provide string data for this content. 0 to 4000 characters in length.
    pub additional_item_info: Option<Vec<AdditionalItemInfo>>,
    pub movie_info: Option<Movie>,
    pub tv_show_info: Option<TvShow>,
    pub tv_season_info: Option<TvSeason>,
    pub tv_episode_info:Option<TvEpisode>,
    pub sporting_event_info:Option<SportEvent>,
    pub extra_info:Option<Extra>
}
/// Content Types in the Catalog Feed
/// A catalog data feed contains data about each of its content items, such as title and description. Each content item must be assigned a unique identifier, content ID, and content type. A content ID must be unique across all content types. The supported content types are:
/// - Movie: A motion picture.
/// - TV show: A TV show is episodic by nature and may consist of seasons.
/// - TV season: A TV season is a collection of episodes and is part of an episodic TV show.
/// - TV episode: A TV episode is part of a TV show and may be part of a TV season.
/// - Sporting event: A game or a match between competitors, typically associated with a specific governing body such as a league.
/// - Extra: Extra content can be standalone, but is typically related to another content item such as a movie, TV show, TV season, or a TV episode.
pub enum ContentType {
    MOVIE,
    TVSHOW,
    TVSEASON,
    TVEPISODE,
    SPORTINGEVENT,
    EXTRA,
}
/// Movie Info Schema
pub struct Movie {
    pub movie_type: MovieType,
    /// The duration of this content in seconds; numeric integer, valid values range from 1 to 86400.
    pub duration: Option<i128>,
    /// A list of studio elements each providing the name of a studio that produced this content. 1 to 255 characters in length.
    pub studio: Option<Vec<String>>,
    pub original_release_date: Vec<ReleaseDateMovie>,
    pub version: Option<MovieVersion>,
}
pub enum MovieType {
    FEATURE,
    TVMOVIE,
    SHORT,
}
pub struct ReleaseDateMovie {
    /// Describes the date of an original release in a country or worldwide. This is typically the theatrical release of the movie.
    ///
    /// If the exact release date is unknown, a year in YYYY-01-01 format should be specified.
    pub date: chrono::naive::NaiveDate,
    /// Attribute country indicates the country of release (two letter ISO 3166-2). If not specified, indicates a worldwide release.
    pub country: Option<String>,
    /// Attribute type indicates the type of release date. See Release Date Type for supported values. If not specified, the value theatrical is assumed.
    pub release_type: Option<ReleaseDateType>,
}
/// - Theatrical: Indicates the date content is made available for public viewing in theaters.
/// - Digital: Indicates the date content is made available for public viewing in streaming services.
/// - Physical: Indicates the date content is made available for public viewing on physical media such as DVD, Blu-Ray, etc.
/// - Festival: Indicates the date content is made available for public viewing in a film or TV festival.
pub enum ReleaseDateType {
    /// Indicates the date content is made available for public viewing in theaters.
    Theatrical,
    /// Indicates the date content is made available for public viewing in streaming services.
    Digital,
    /// Indicates the date content is made available for public viewing on physical media such as DVD, Blu-Ray, etc.
    Physical,
    /// Indicates the date content is made available for public viewing in a film or TV festival.
    Festival,
}
/// - standard: The standard (original/theatrical) version of the movie
/// - unrated: An unrated version of the movie
/// - rated: A rated version of the movie
/// - uncut: An uncut version of the movie
/// - directors_cut: A director’s cut of the movie
/// - extended: An extended version of the movie
/// - remastered: A remastered version of the movie
/// - special_edition: A special edition of the movie
/// - alternate_ending: An alternate ending version of the movie
/// - alternate_cut: An alternate cut version of the movie
/// edited_for_tv: An Edited for TV version of the movie
pub enum MovieVersion {
    Standard,
    Unrated,
    Rated,
    Uncut,
    DirectorsCut,
    Extended,
    Remastered,
    SpecialEdition,
    AlternateEnding,
    AlternateCut,
    EditedForTv,
}
pub struct Title {
    pub content: String,
    /// Attribute locale can be used to set the locale in BCP-47 Format. If no locale attribute is provided, the locale will be set to defaultLocale value. Multiple locales can be specified in multiple repeated elements.
    pub locale: Option<String>,
    pub text_type: Option<TitleType>,
    /// Attribute isPhonetic with a value true or false can be supplied to designate titles with different pronunciations. If any meaningful separation units exist, they should be delimited using a space character.
    ///
    /// Japanese phonetic title should be provided in full-width Hiragana or Katakana. Providing the phonetic title provides a better search experience for the user.
    pub is_phonetic: Option<bool>,
    /// Attribute countriesRestrictedTo can be used to limit the countries that the title may be used in. The value of this attribute must be a comma-separated string of the two-letter country codes as defined in the ISO 3166 International Standard. If this attribute is not specified, it will be assumed that the title can be used worldwide.
    pub countries_restricted_to: Option<Vec<String>>,
}
/// - additional: Type used to designate secondary titles.
/// - descriptive: Type used to designate distinct descriptive, market-facing titles.
/// Note: Titles of this type are not supported for all content types. Contact your Apple Technical Partner for more details.
pub enum TitleType {
    Additional,
    Descriptive,
}
pub struct Description {
    pub content: String,
    /// Attribute locale can be used to set the locale in BCP-47 Format. If no locale attribute is provided, the locale will be set to defaultLocale value. Multiple locales can be specified in multiple repeated elements.
    pub locale: Option<String>,
    /// Attribute countriesRestrictedTo can be used to limit the countries that the title may be used in. The value of this attribute must be a comma-separated string of the two-letter country codes as defined in the ISO 3166 International Standard. If this attribute is not specified, it will be assumed that the title can be used worldwide.
    pub countries_restricted_to: Option<Vec<String>>,
}
pub enum Genre {
    Action,
    Adventure,
    Animation,
    Anime,
    Biography,
    Bollywood,
    Classics,
    Comedy,
    Crime,
    Documentary,
    Drama,
    Educational,
    Fantasy,
    GameShow,
    History,
    Holiday,
    Horror,
    Independent,
    Interview,
    KidsAndFamily,
    LGBTQ,
    Music,
    Musical,
    Mystery,
    News,
    Novelas,
    Reality,
    Romance,
    SciFi,
    ShortFilms,
    SpecialInterest,
    Sports,
    TalkShow,
    Teens,
    Thriller,
    Travel,
    Variety,
    War,
    Western,
}
pub struct Rating {
    /// Attribute systemCode specifies which system the rating is for.
    pub system_code: String,
    pub value: String,
    /// Specifies the rating reason as supplied by the ratings board for the corresponding rating system.
    /// 1 to 4000 characters in length.
    pub reason: Option<Vec<Reason>>,
}
pub struct Reason {
    pub value: String,
    /// Attribute locale can be used to specify the locale for the rating reason. The locale must be in BCP-47 Format. If no locale attribute is provided, the locale is assumed to be the defaultLocale as specified in the feed header. Multiple locales can be specified in multiple repeated elements.
    pub locale: String,
}
pub struct Advisory {
    pub value: String,
    /// Attribute systemCode specifies which advisory system the advisory is for.
    ///
    /// See Content Advisories and Ratings for systemCode values and rating values. There can only be one rating per systemCode.
    pub system_code: String,
    /// Attribute level specifies the severity or the degree of expression of the advisory.
    ///
    /// See Content Advisories and Ratings for valid level values. There can only be one level for an advisory.
    pub level: Option<String>,
}
pub struct Credit {
    /// Attribute role will be used to define the credited role, see Credited Role for values. It is highly recommended to include at least one director and/or major actor.
    pub role: Role,
    /// Attribute order will be used to sequence the credits for this item. If order is not provided, credits will be sequenced based on order of appearance in the feed. Typically credits are provided in billing order.
    pub order: Option<i16>,
    /// Specifies the official name of the credited entity.
    ///
    /// 1 to 255 characters in length.
    pub name: Vec<Name>,
    pub credited_person_info: Option<CreditedPersonInfo>,
    pub character: Option<Vec<Character>>,
}
pub enum Role {
    Actor,
    Director,
    Writer,
    Producer,
    Creator,
    Voice,
    Narrator,
    GuestStar,
    Guest,
    Host,
    Anchor,
    Music,
    ExecutiveProducer,
    /// Executive in Charge (EIC)
    EIC,
    HeadWriter,
    Editor,
    Performer,
    _Self,
    Advisor,
    Cast,
    Songwriter,
    Other,
}
pub struct Name {
    pub content: String,
    /// Attribute locale can be used to set the locale in BCP-47 Format. If no locale attribute is provided, the locale will be set to defaultLocale value. Multiple locales can be specified in multiple repeated elements.
    pub locale: Option<String>,
    /// Attribute isPhonetic with a value true or false can be supplied to designate titles with different pronunciations. If any meaningful separation units exist, they should be delimited using a space character.
    ///
    /// Japanese phonetic title should be provided in full-width Hiragana or Katakana. Providing the phonetic title provides a better search experience for the user.
    pub is_phonetic: Option<bool>,
}
pub struct CreditedPersonInfo {
    /// Specifies date of birth for credited entity.
    pub date_of_birth: Option<chrono::naive::NaiveDate>,
    pub external_id: Option<Vec<ExternalId>>,
}
pub struct ExternalId {
    pub catalog_id: String,
    pub value: String,
}
pub struct Character {
    /// Specifies the cast in character image URL for credited entity.
    ///
    /// Note: If any previously delivered artwork is changed, a new URL must be provided for the new artwork so it can be ingested.
    pub image_url: Option<String>,
    pub character_name: Vec<Name>,
}
pub struct Artwork {
    /// Attribute url specifies the URL to the artwork asset.
    ///
    /// Note: If any previously delivered artwork is changed, a new URL must be provided for the new artwork so it can be ingested.
    ///
    /// It is highly recommended to use default HTTP(S) ports for the artwork URLs.
    pub url: String,
    /// Attribute type identifies the type of the artwork from the UMC-defined types specified in Artwork Asset Type table.
    pub artwork_type: ArtworkType,
    /// Attribute locales should be a comma-separated list of BCP-47 Format locales for this artwork. Missing locales will be presumed to be non-localized artwork applicable worldwide.
    pub locales: Option<Vec<String>>,
    /// Attribute countriesRestrictedTo can be used to limit the countries that the image may be used in. The value of this attribute must be a comma-separated string of the two-letter country codes as defined in the ISO 3166 International Standard. If this attribute is not specified, then it will be assumed that the title can be used worldwide.
    pub countries_restricted_to: Option<Vec<String>>,
}
pub enum ArtworkType {
    CoverArtworkSquare,
    CoverArtworkVertical,
    CoverArtworkHorizontal,
    TileArtwork,
    CenteredBackground,
    CenteredBackgroundSmall,
    ContentLogoMonochromatic,
    ContentLogoPolychromatic,
}
pub struct AdditionalItemInfo {
    pub value: String,
    /// Attribute type identifies the type of additional item information from the UMC-defined types specified in the appendix Additional Item Information Type table.
    pub additional_item_info_type: String,
    /// Attribute locale in BCP-47 Format. If no locale attribute is provided, the locale will be set to defaultLocale value. Multiple locales can be specified in multiple repeated elements.
    pub locale: Option<String>,
    /// Attribute countriesRestrictedTo can be used to limit the countries that the copyright line may be used in. The value of this attribute must be a comma-separated string of the 2-letter country codes as defined in the ISO 3166 International Standard. If this attribute is not specified, it will be assumed that the value can be used worldwide.
    pub countries_restricted_to: Option<Vec<String>>,
}
pub struct TvShow {
    pub tv_show_type: TvShowType,
    /// * Required if no localPremiereDate is provided.
    ///
    /// Date when the show’s premiere was originally aired globally (or in country of origin). This should be in YYYY-MM-DD format.
    ///
    /// Important: If the exact originalPremiereDate is unknown, an exact year in YYYY-01-01 format should be specified.
    pub original_premiere_date: Option<chrono::naive::NaiveDate>,
    /// * Required if originalPremiereDate is not provided.
    ///
    /// Date when the show’s premiere was aired in the countries specified. This should be in YYYY-MM-DD format.
    pub local_premiere_date: Option<Vec<LocalPremiereDate>>,
    /// Date when the show’s finale was originally aired globally (or in country of origin). This should be in YYYY- MM-DD format.
    ///
    /// Original finale date must not be earlier than the specified original premiere date.
    pub original_finale_date: Option<chrono::naive::NaiveDate>,
    /// The date that this show’s finale was aired in the countries specified. This should be in YYYY-MM-DD format.
    ///
    /// The local finale date must not be earlier than the specified local premiere date for the respective country.
    pub local_finale_date: Option<Vec<LocalPremiereDate>>,
    /// Contains a name corresponding to the show airing network.
    pub network: Option<Vec<String>>,
}
pub enum TvShowType {
    Series,
    Miniseries,
    Seasonless,
}
pub struct LocalPremiereDate {
    ///
    pub value: chrono::naive::NaiveDate,
    /// Attribute countries must be used to specify the countries that the premiere date applies to. Value should be the two-letter country codes as defined in the ISO 3166 International Standard. Multiple countries can be grouped together in a comma-separated value string.
    pub countries: Vec<String>,
}
pub struct TvSeason {
    /// The provider-unique ID for the season’s TV show as defined by the TV show’s contentId.
    pub show_content_id: String,
    /// The sequential season number for this season, specified as a non-negative integer value.
    pub season_number: i64,
    /// Date when the season’s premiere was originally aired globally (or in country of origin). This should be in YYYY-MM-DD format.
    pub original_premiere_date: Option<chrono::naive::NaiveDate>,
    /// Date when the season's premiere was aired in the countries specified. This should be in YYYY-MM-DD format.
    pub local_premiere_date: Option<Vec<LocalPremiereDate>>,
    /// Date when the season’s finale was originally aired globally (or in country of origin). This should be in YYYY-MM-DD format.
    ///
    /// Original finale date must not be earlier than the specified original premiere date.
    pub original_finale_date: chrono::naive::NaiveDate,
    /// The date that this season's finale was aired in the countries specified. This should be in YYYY-MM-DD format.
    ///
    /// The local finale date must not be earlier than the specified local premiere date for the respective country.
    pub local_finale_date: Option<Vec<LocalPremiereDate>>,
}
pub struct TvEpisode {
    pub episode_type: EpisodeType,
    /// The duration of this content in seconds; numeric integer, valid values range from 1 to 86400.
    pub duration: Option<i128>,
    /// * Required if localAirDate is not provided.
    ///
    /// The date that this episode originally aired in its country of origin. If this episode never aired on TV, this should be the date this episode was first available in its country of origin. This should be in YYYY-MM-DD format.
    pub original_air_date: Option<chrono::naive::NaiveDate>,
    /// * Required if originalAirDate is not provided.
    ///
    /// The date that this episode aired in the countries specified. This is the first time this episode aired on any partner in the countries specified. If this episode never aired on TV, this should be the date this episode was first available in the countries specified. This should be in YYYY- MM-DD format.
    pub local_air_date: Option<Vec<LocalPremiereDate>>,
    /// The provider-unique ID for the episode’s TV show as defined by the show contentId.
    pub show_content_id: String,
    /// Required* for a standard episode in a show of type series.
    ///
    /// * Not applicable for an episode in a show of type miniseries and type seasonless.
    ///
    /// The provider-unique ID for the episode’s TV season as defined by the season contentId.
    pub season_content_id: Option<String>,
    /// Required* for a standard episode in a show of type series.
    ///
    /// * Not applicable for an episode in a show of type miniseries and type seasonless.
    ///
    /// The sequential season number for this episode, specified as a non-negative integer value.
    pub season_number: Option<i128>,
    /// Required* for a standard episode in a series and miniseries.
    ///
    /// *Optional for a standard episode in a seasonless TV show.
    ///
    /// The sequential episode number of this episode within this season; Specified as a non-negative integer or decimal value. For decimal episode numbers, only values up to one decimal place are supported.
    ///
    /// Note: Decimal episode numbers need to be exclusively featured. Contact your Apple Technical Partner before providing decimal episode numbers.
    pub episode_number: Option<f32>,
    /// A string identifying the production number of this episode.
    ///
    /// 1 to 255 characters in length.
    pub production_number: String,
}
pub enum EpisodeType {
    Standard,
}
pub struct SportEvent {
    /// The scheduled starting date and time of the ISO 3166 International Standard: YYYY-MM-DDThh:mm:ss.sTZD
    ///
    /// - YYYY is four-digit year
    /// - MM is two-digit month (01=January, etc.)
    /// - DD is two-digit day of month (01 through 31)
    /// - hh is two digits of hour (00 through 23) (am/pm NOT allowed)
    /// - mm is two digits of minute (00 through 59)
    /// - ss is two digits of second (00 through 59)
    /// - s is one or more digits representing a decimal fraction of a second
    ///
    /// TZD is time zone designator (Z or +hh:mm or -hh:mm)
    pub start_date: chrono::naive::NaiveDate,
    /// The abbreviation of the sport or sub-sport (if any) for this sporting event.
    pub sport_name: String,
    /// Describes the official governing body (such as league or federation) associated with the sporting event.
    pub league: League,
    /// Describes the details of the part of the year in which the sporting event occurs.
    pub sport_season: Option<SportSeason>,
    pub venue: Option<Venue>,
    pub competitor: Option<Vec<Competitor>>,
    pub event_round: Option<EventRound>,
    pub event_status: Option<EventStatus>,
    pub tournament: Option<Tournament>,
    /// Boolean true/false value. A value of true should be used to indicate that, although this event is scheduled or expected to happen, some data such as the competitor details or the venue details remain to be decided.
    pub is_tbd: Option<bool>,
    /// A string sequence of letters identifying the television station, channel, or network this event is televised on.
    pub call_sign: Option<Vec<String>>,
}
pub struct League {
    pub value: String,
    /// Attribute leagueId must be a unique ID for the league.
    ///
    /// 1 to 255 characters in length.
    pub league_id: Option<String>,
    /// The abbreviation for this league or tournament.
    pub abbreviation: String,
    /// The full name of the league.
    pub name: Option<String>,
}
pub struct SportSeason {
    pub year: i32,
    pub name: Option<Vec<SportName>>,
    pub season_type: SportSeasonType,
}
pub struct SportName {
    pub value: String,
    /// Attribute locale can be used to set the locale in BCP-47 Format. If no locale attribute is provided, the locale will be set to defaultLocale value. Multiple locales can be specified in multiple repeated elements.
    pub locale: Option<String>,
}
pub enum SportSeasonType {
    /// Indicates that the associated event is a regular season event.
    Regular,
    /// Indicates that the associated event is a preseason event.
    Pre,
    /// Indicates that the associated event is a postseason or a playoff event. This is typically used with playoff games and conference tournaments.
    Post,
    /// Indicates that the associated event is a special event such as an all-star game.
    Special,
}
pub struct Venue {
    pub venue_id: Option<String>,
    pub name: Vec<SportName>,
    pub city: Vec<SportName>,
    pub state: Option<Vec<SportName>>,
    pub country: String,
}
pub struct Competitor {
    pub competitor_id: Option<String>,
    pub name: Vec<SportName>,
    pub home_location: Option<String>,
    pub abbreviation: Option<String>,
    pub is_home: Option<bool>,
    pub is_person: Option<bool>,
}
pub struct EventRound {
    pub name: Vec<SportName>,
    pub games_in_round: i64,
    pub game_number: i64,
}
pub enum EventStatus {
    Canceled,
    NotNecessary,
    Delayed,
}
pub struct Tournament {
    pub tournament_id: Option<String>,
    pub name: Vec<SportName>,
}
pub struct Extra {
    pub extra_type: ExtraType,
    /// The duration of this content in seconds; numeric integer, valid values range from 1 to 86400.
    pub duration: Option<i128>,
    /// The date that this extra content aired in the countries specified. This is the first time this extra content aired on any partner in the countries specified. If this extra content never aired on TV, this should be the date this extra content was first available in the countries specified. This should be in YYYY-MM-DD format.
    pub local_air_date:Option<Vec<LocalPremiereDate>>,
    /// A list of studio elements each providing the name of a studio that produced this content. 1 to 255 characters in length.
    pub studio: Option<Vec<String>>,
    /// Contains a name corresponding to the network airing this content.
    pub network:Option<Vec<String>>
}
pub enum ExtraType {
    Bonus,
    /// A sizzle contains montage, clip-based, or segment footage (or a combination thereof) that clearly and efficiently outlines the concept of a content.
    Sizzle,
    /// A preview contains montage, clip-based, or segment footage (or a combination thereof) that is an official advertisement for related content. It is made up of footage from the related content.
    Preview,
    /// A promotional extra contains montage, clip-based, or segment footage (or a combination thereof) that is intended to promote the related content. It is made up of footage that is independent from the related content and may also include footage from the related content.
    /// 
    /// Note: This content needs to be exclusively featured. Contact your Apple Technical Partner before providing content of this type.
    Promotional,
    /// A bespoke video intended to promote the related content or a bespoke video that can be used as stand-alone content.
    /// 
    /// Note: This content needs to be exclusively featured. Contact your Apple Technical Partner before providing content of this type.
    FeaturedPromo
}