// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: social.flockfeeds.lexical.type.MusicEvent
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[allow(unused_imports)]
use alloc::collections::BTreeMap;

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::{CowStr, BosStr, DefaultStr, FromStaticStr};

#[allow(unused_imports)]
use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;
use jacquard_common::deps::smol_str::SmolStr;
use jacquard_common::types::collection::{Collection, RecordError};
use jacquard_common::types::string::{AtUri, Cid};
use jacquard_common::types::uri::{RecordUri, UriError};
use jacquard_common::types::value::Data;
use jacquard_common::xrpc::XrpcResp;
use jacquard_derive::{IntoStatic, lexicon, open_union};
use jacquard_lexicon::lexicon::LexiconDoc;
use jacquard_lexicon::schema::LexiconSchema;

#[allow(unused_imports)]
use jacquard_lexicon::validation::{ConstraintError, ValidationPath};
use serde::{Serialize, Deserialize};
use crate::social_flockfeeds::lexical::r#type::event;
use crate::social_flockfeeds::lexical::r#type::image_object;
use crate::social_flockfeeds::lexical::r#type::offer;
use crate::social_flockfeeds::lexical::r#type::organization;
use crate::social_flockfeeds::lexical::r#type::person;
/// Event type: Music event.

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Embedded<S: BosStr = DefaultStr> {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub about: Option<EmbeddedAbout<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub actor: Option<EmbeddedActor<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub additional_type: Option<EmbeddedAdditionalType<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub aggregate_rating: Option<EmbeddedAggregateRating<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub alternate_name: Option<EmbeddedAlternateName<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub attendee: Option<EmbeddedAttendee<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub attendees: Option<EmbeddedAttendees<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub audience: Option<EmbeddedAudience<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub composer: Option<EmbeddedComposer<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub contributor: Option<EmbeddedContributor<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub description: Option<EmbeddedDescription<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub director: Option<EmbeddedDirector<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub disambiguating_description: Option<EmbeddedDisambiguatingDescription<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub door_time: Option<EmbeddedDoorTime<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub duration: Option<EmbeddedDuration<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub end_date: Option<EmbeddedEndDate<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub event_attendance_mode: Option<EmbeddedEventAttendanceMode<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub event_schedule: Option<EmbeddedEventSchedule<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub event_status: Option<EmbeddedEventStatus<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub funder: Option<EmbeddedFunder<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub funding: Option<EmbeddedFunding<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub identifier: Option<EmbeddedIdentifier<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub image: Option<EmbeddedImage<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub in_language: Option<EmbeddedInLanguage<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub is_accessible_for_free: Option<EmbeddedIsAccessibleForFree<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub keywords: Option<EmbeddedKeywords<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub location: Option<EmbeddedLocation<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub main_entity_of_page: Option<EmbeddedMainEntityOfPage<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub maximum_attendee_capacity: Option<EmbeddedMaximumAttendeeCapacity<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub maximum_physical_attendee_capacity: Option<
        EmbeddedMaximumPhysicalAttendeeCapacity<S>,
    >,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub maximum_virtual_attendee_capacity: Option<
        EmbeddedMaximumVirtualAttendeeCapacity<S>,
    >,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<EmbeddedName<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub offers: Option<EmbeddedOffers<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub organizer: Option<EmbeddedOrganizer<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub performer: Option<EmbeddedPerformer<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub performers: Option<EmbeddedPerformers<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub potential_action: Option<EmbeddedPotentialAction<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub previous_start_date: Option<EmbeddedPreviousStartDate<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub recorded_in: Option<EmbeddedRecordedIn<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub remaining_attendee_capacity: Option<EmbeddedRemainingAttendeeCapacity<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub review: Option<EmbeddedReview<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub same_as: Option<EmbeddedSameAs<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sponsor: Option<EmbeddedSponsor<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub start_date: Option<EmbeddedStartDate<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sub_event: Option<EmbeddedSubEvent<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sub_events: Option<EmbeddedSubEvents<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub subject_of: Option<EmbeddedSubjectOf<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub super_event: Option<EmbeddedSuperEvent<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub translator: Option<EmbeddedTranslator<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub typical_age_range: Option<EmbeddedTypicalAgeRange<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub url: Option<EmbeddedUrl<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub work_featured: Option<EmbeddedWorkFeatured<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub work_performed: Option<EmbeddedWorkPerformed<S>>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedAbout<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedActor<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedAdditionalType<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedAggregateRating<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedAlternateName<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedAttendee<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedAttendees<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedAudience<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedComposer<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedContributor<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedDescription<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedDirector<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedDisambiguatingDescription<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedDoorTime<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedDuration<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedEndDate<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedEventAttendanceMode<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedEventSchedule<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedEventStatus<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedFunder<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedFunding<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedIdentifier<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedImage<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.ImageObject#embedded")]
    ImageObjectEmbedded(Box<image_object::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedInLanguage<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedIsAccessibleForFree<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedKeywords<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedLocation<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedMainEntityOfPage<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedMaximumAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedMaximumPhysicalAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedMaximumVirtualAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedName<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedOffers<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Offer#embedded")]
    OfferEmbedded(Box<offer::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedOrganizer<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedPerformer<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedPerformers<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedPotentialAction<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedPreviousStartDate<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedRecordedIn<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedRemainingAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedReview<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedSameAs<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedSponsor<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedStartDate<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedSubEvent<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedSubEvents<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedSubjectOf<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedSuperEvent<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedTranslator<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedTypicalAgeRange<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedUrl<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedWorkFeatured<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum EmbeddedWorkPerformed<S: BosStr = DefaultStr> {}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(
    rename_all = "camelCase",
    rename = "social.flockfeeds.lexical.type.MusicEvent",
    tag = "$type",
    bound(deserialize = "S: Deserialize<'de> + BosStr")
)]
pub struct MusicEvent<S: BosStr = DefaultStr> {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub about: Option<MusicEventAbout<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub actor: Option<MusicEventActor<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub additional_type: Option<MusicEventAdditionalType<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub aggregate_rating: Option<MusicEventAggregateRating<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub alternate_name: Option<MusicEventAlternateName<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub attendee: Option<MusicEventAttendee<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub attendees: Option<MusicEventAttendees<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub audience: Option<MusicEventAudience<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub composer: Option<MusicEventComposer<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub contributor: Option<MusicEventContributor<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub description: Option<MusicEventDescription<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub director: Option<MusicEventDirector<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub disambiguating_description: Option<MusicEventDisambiguatingDescription<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub door_time: Option<MusicEventDoorTime<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub duration: Option<MusicEventDuration<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub end_date: Option<MusicEventEndDate<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub event_attendance_mode: Option<MusicEventEventAttendanceMode<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub event_schedule: Option<MusicEventEventSchedule<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub event_status: Option<MusicEventEventStatus<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub funder: Option<MusicEventFunder<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub funding: Option<MusicEventFunding<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub identifier: Option<MusicEventIdentifier<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub image: Option<MusicEventImage<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub in_language: Option<MusicEventInLanguage<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub is_accessible_for_free: Option<MusicEventIsAccessibleForFree<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub keywords: Option<MusicEventKeywords<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub location: Option<MusicEventLocation<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub main_entity_of_page: Option<MusicEventMainEntityOfPage<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub maximum_attendee_capacity: Option<MusicEventMaximumAttendeeCapacity<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub maximum_physical_attendee_capacity: Option<
        MusicEventMaximumPhysicalAttendeeCapacity<S>,
    >,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub maximum_virtual_attendee_capacity: Option<
        MusicEventMaximumVirtualAttendeeCapacity<S>,
    >,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub name: Option<MusicEventName<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub offers: Option<MusicEventOffers<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub organizer: Option<MusicEventOrganizer<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub performer: Option<MusicEventPerformer<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub performers: Option<MusicEventPerformers<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub potential_action: Option<MusicEventPotentialAction<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub previous_start_date: Option<MusicEventPreviousStartDate<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub recorded_in: Option<MusicEventRecordedIn<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub remaining_attendee_capacity: Option<MusicEventRemainingAttendeeCapacity<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub review: Option<MusicEventReview<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub same_as: Option<MusicEventSameAs<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sponsor: Option<MusicEventSponsor<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub start_date: Option<MusicEventStartDate<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sub_event: Option<MusicEventSubEvent<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sub_events: Option<MusicEventSubEvents<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub subject_of: Option<MusicEventSubjectOf<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub super_event: Option<MusicEventSuperEvent<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub translator: Option<MusicEventTranslator<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub typical_age_range: Option<MusicEventTypicalAgeRange<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub url: Option<MusicEventUrl<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub work_featured: Option<MusicEventWorkFeatured<S>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub work_performed: Option<MusicEventWorkPerformed<S>>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventAbout<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventActor<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventAdditionalType<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventAggregateRating<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventAlternateName<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventAttendee<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventAttendees<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventAudience<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventComposer<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventContributor<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventDescription<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventDirector<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventDisambiguatingDescription<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventDoorTime<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventDuration<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventEndDate<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventEventAttendanceMode<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventEventSchedule<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventEventStatus<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventFunder<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventFunding<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventIdentifier<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventImage<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.ImageObject#embedded")]
    ImageObjectEmbedded(Box<image_object::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventInLanguage<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventIsAccessibleForFree<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventKeywords<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventLocation<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventMainEntityOfPage<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventMaximumAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventMaximumPhysicalAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventMaximumVirtualAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventName<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventOffers<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Offer#embedded")]
    OfferEmbedded(Box<offer::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventOrganizer<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventPerformer<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventPerformers<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventPotentialAction<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventPreviousStartDate<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventRecordedIn<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventRemainingAttendeeCapacity<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventReview<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventSameAs<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventSponsor<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventStartDate<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventSubEvent<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventSubEvents<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventSubjectOf<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventSuperEvent<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Event#embedded")]
    EventEmbedded(Box<event::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventTranslator<S: BosStr = DefaultStr> {
    #[serde(rename = "social.flockfeeds.lexical.type.Organization#embedded")]
    OrganizationEmbedded(Box<organization::Embedded<S>>),
    #[serde(rename = "social.flockfeeds.lexical.type.Person#embedded")]
    PersonEmbedded(Box<person::Embedded<S>>),
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventTypicalAgeRange<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventUrl<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventWorkFeatured<S: BosStr = DefaultStr> {}

#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum MusicEventWorkPerformed<S: BosStr = DefaultStr> {}
/// Typed wrapper for GetRecord response with this collection's record type.

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct MusicEventGetRecordOutput<S: BosStr = DefaultStr> {
    #[serde(skip_serializing_if = "Option::is_none")]
    pub cid: Option<Cid<S>>,
    pub uri: AtUri<S>,
    pub value: MusicEvent<S>,
}

impl<S: BosStr> MusicEvent<S> {
    pub fn uri(uri: S) -> Result<RecordUri<S, MusicEventRecord>, UriError> {
        RecordUri::try_from_uri(AtUri::new(uri)?)
    }
}

impl<S: BosStr> LexiconSchema for Embedded<S> {
    fn nsid() -> &'static str {
        "social.flockfeeds.lexical.type.MusicEvent"
    }
    fn def_name() -> &'static str {
        "embedded"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_social_flockfeeds_lexical_type_MusicEvent()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

/// Marker type for deserializing records from this collection.

#[derive(Debug, Serialize, Deserialize)]
pub struct MusicEventRecord;
impl XrpcResp for MusicEventRecord {
    const NSID: &'static str = "social.flockfeeds.lexical.type.MusicEvent";
    const ENCODING: &'static str = "application/json";
    type Output<S: BosStr> = MusicEventGetRecordOutput<S>;
    type Err = RecordError;
}

impl<S: BosStr> From<MusicEventGetRecordOutput<S>> for MusicEvent<S> {
    fn from(output: MusicEventGetRecordOutput<S>) -> Self {
        output.value
    }
}

impl<S: BosStr> Collection for MusicEvent<S> {
    const NSID: &'static str = "social.flockfeeds.lexical.type.MusicEvent";
    type Record = MusicEventRecord;
}

impl Collection for MusicEventRecord {
    const NSID: &'static str = "social.flockfeeds.lexical.type.MusicEvent";
    type Record = MusicEventRecord;
}

impl<S: BosStr> LexiconSchema for MusicEvent<S> {
    fn nsid() -> &'static str {
        "social.flockfeeds.lexical.type.MusicEvent"
    }
    fn def_name() -> &'static str {
        "main"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_social_flockfeeds_lexical_type_MusicEvent()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

fn lexicon_doc_social_flockfeeds_lexical_type_MusicEvent() -> LexiconDoc<'static> {
    #[allow(unused_imports)]
    use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType};
    use jacquard_lexicon::lexicon::*;
    use alloc::collections::BTreeMap;
    LexiconDoc {
        lexicon: Lexicon::Lexicon1,
        id: CowStr::new_static("social.flockfeeds.lexical.type.MusicEvent"),
        defs: {
            let mut map = BTreeMap::new();
            map.insert(
                SmolStr::new_static("embedded"),
                LexUserType::Object(LexObject {
                    description: Some(CowStr::new_static("Event type: Music event.")),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("about"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Thing#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#aboutList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("actor"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.PerformingGroup#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#actorList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("additionalType"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#additionalTypeScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#additionalTypeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("aggregateRating"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.AggregateRating#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#aggregateRatingList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("alternateName"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#alternateNameScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#alternateNameList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("attendee"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#attendeeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("attendees"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#attendeesList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("audience"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Audience#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#audienceList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("composer"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#composerList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("contributor"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#contributorList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("description"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.TextObject#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#descriptionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#descriptionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("director"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#directorList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("disambiguatingDescription"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#disambiguatingDescriptionScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#disambiguatingDescriptionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("doorTime"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#doorTimeScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#doorTimeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("duration"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#durationScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#durationList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("endDate"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#endDateScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#endDateList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eventAttendanceMode"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.EventAttendanceModeEnumeration#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventAttendanceModeScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventAttendanceModeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eventSchedule"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Schedule#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventScheduleList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("eventStatus"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.EventStatusType#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventStatusScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventStatusList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("funder"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#funderList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("funding"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Grant#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#fundingList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("identifier"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.PropertyValue#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#identifierScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#identifierList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("image"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.ImageObject#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#imageScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#imageList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("inLanguage"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Language#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#inLanguageScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#inLanguageList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("isAccessibleForFree"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#isAccessibleForFreeScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#isAccessibleForFreeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("keywords"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.DefinedTerm#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#keywordsScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#keywordsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("location"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.PostalAddress#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.VirtualLocation#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#locationScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#locationList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("mainEntityOfPage"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#mainEntityOfPageScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#mainEntityOfPageList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("maximumAttendeeCapacity"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumAttendeeCapacityScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumAttendeeCapacityList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("maximumPhysicalAttendeeCapacity"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumPhysicalAttendeeCapacityScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumPhysicalAttendeeCapacityList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("maximumVirtualAttendeeCapacity"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumVirtualAttendeeCapacityScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumVirtualAttendeeCapacityList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("name"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#nameScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#nameList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("offers"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Demand#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Offer#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#offersList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("organizer"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#organizerList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("performer"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#performerList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("performers"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#performersList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("potentialAction"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Action#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#potentialActionList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("previousStartDate"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#previousStartDateScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#previousStartDateList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("recordedIn"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#recordedInList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("remainingAttendeeCapacity"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#remainingAttendeeCapacityScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#remainingAttendeeCapacityList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("review"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Review#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#reviewList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("sameAs"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#sameAsScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#sameAsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("sponsor"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#sponsorList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("startDate"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#startDateScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#startDateList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("subEvent"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#subEventList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("subEvents"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#subEventsList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("subjectOf"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#subjectOfList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("superEvent"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#superEventList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("translator"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#translatorList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("typicalAgeRange"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#typicalAgeRangeScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#typicalAgeRangeList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("url"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#urlScalar"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#urlList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("workFeatured"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#workFeaturedList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("workPerformed"),
                            LexObjectProperty::Union(LexRefUnion {
                                refs: vec![
                                    CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                    CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#workPerformedList")
                                ],
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("main"),
                LexUserType::Record(LexRecord {
                    key: Some(CowStr::new_static("tid")),
                    record: LexRecordRecord::Object(LexObject {
                        description: Some(
                            CowStr::new_static("Event type: Music event."),
                        ),
                        properties: {
                            #[allow(unused_mut)]
                            let mut map = BTreeMap::new();
                            map.insert(
                                SmolStr::new_static("about"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Thing#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#aboutList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("actor"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.PerformingGroup#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#actorList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("additionalType"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#additionalTypeScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#additionalTypeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("aggregateRating"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.AggregateRating#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#aggregateRatingList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("alternateName"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#alternateNameScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#alternateNameList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("attendee"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#attendeeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("attendees"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#attendeesList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("audience"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Audience#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#audienceList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("composer"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#composerList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("contributor"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#contributorList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("description"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.TextObject#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#descriptionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#descriptionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("director"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#directorList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("disambiguatingDescription"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#disambiguatingDescriptionScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#disambiguatingDescriptionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("doorTime"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#doorTimeScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#doorTimeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("duration"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.QuantitativeValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#durationScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#durationList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("endDate"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#endDateScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#endDateList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eventAttendanceMode"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.EventAttendanceModeEnumeration#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventAttendanceModeScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventAttendanceModeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eventSchedule"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Schedule#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventScheduleList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("eventStatus"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.EventStatusType#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventStatusScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#eventStatusList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("funder"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#funderList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("funding"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Grant#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#fundingList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("identifier"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.PropertyValue#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#identifierScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#identifierList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("image"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.ImageObject#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#imageScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#imageList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("inLanguage"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Language#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#inLanguageScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#inLanguageList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("isAccessibleForFree"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#isAccessibleForFreeScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#isAccessibleForFreeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("keywords"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.DefinedTerm#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#keywordsScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#keywordsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("location"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Place#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.PostalAddress#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.VirtualLocation#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#locationScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#locationList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("mainEntityOfPage"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#mainEntityOfPageScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#mainEntityOfPageList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("maximumAttendeeCapacity"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumAttendeeCapacityScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumAttendeeCapacityList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("maximumPhysicalAttendeeCapacity"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumPhysicalAttendeeCapacityScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumPhysicalAttendeeCapacityList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("maximumVirtualAttendeeCapacity"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumVirtualAttendeeCapacityScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#maximumVirtualAttendeeCapacityList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("name"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#nameScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#nameList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("offers"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Demand#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Offer#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#offersList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("organizer"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#organizerList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("performer"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#performerList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("performers"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#performersList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("potentialAction"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Action#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#potentialActionList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("previousStartDate"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#previousStartDateScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#previousStartDateList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("recordedIn"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#recordedInList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("remainingAttendeeCapacity"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#remainingAttendeeCapacityScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#remainingAttendeeCapacityList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("review"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Review#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#reviewList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("sameAs"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#sameAsScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#sameAsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("sponsor"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#sponsorList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("startDate"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#startDateScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#startDateList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("subEvent"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#subEventList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("subEvents"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#subEventsList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("subjectOf"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#subjectOfList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("superEvent"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Event#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#superEventList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("translator"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.Organization#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.type.Person#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#translatorList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("typicalAgeRange"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#typicalAgeRangeScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#typicalAgeRangeList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("url"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#urlScalar"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#urlList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("workFeatured"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#workFeaturedList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map.insert(
                                SmolStr::new_static("workPerformed"),
                                LexObjectProperty::Union(LexRefUnion {
                                    refs: vec![
                                        CowStr::new_static("social.flockfeeds.lexical.type.CreativeWork#embedded"),
                                        CowStr::new_static("social.flockfeeds.lexical.prop.musicEvent#workPerformedList")
                                    ],
                                    ..Default::default()
                                }),
                            );
                            map
                        },
                        ..Default::default()
                    }),
                    ..Default::default()
                }),
            );
            map
        },
        ..Default::default()
    }
}

pub mod music_event_state {

    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
    #[allow(unused)]
    use ::core::marker::PhantomData;
    mod sealed {
        pub trait Sealed {}
    }
    /// State trait tracking which required fields have been set
    pub trait State: sealed::Sealed {}
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {}
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {}
}

/// Builder for constructing an instance of this type.
pub struct MusicEventBuilder<St: music_event_state::State, S: BosStr = DefaultStr> {
    _state: PhantomData<fn() -> St>,
    _fields: (
        Option<MusicEventAbout<S>>,
        Option<MusicEventActor<S>>,
        Option<MusicEventAdditionalType<S>>,
        Option<MusicEventAggregateRating<S>>,
        Option<MusicEventAlternateName<S>>,
        Option<MusicEventAttendee<S>>,
        Option<MusicEventAttendees<S>>,
        Option<MusicEventAudience<S>>,
        Option<MusicEventComposer<S>>,
        Option<MusicEventContributor<S>>,
        Option<MusicEventDescription<S>>,
        Option<MusicEventDirector<S>>,
        Option<MusicEventDisambiguatingDescription<S>>,
        Option<MusicEventDoorTime<S>>,
        Option<MusicEventDuration<S>>,
        Option<MusicEventEndDate<S>>,
        Option<MusicEventEventAttendanceMode<S>>,
        Option<MusicEventEventSchedule<S>>,
        Option<MusicEventEventStatus<S>>,
        Option<MusicEventFunder<S>>,
        Option<MusicEventFunding<S>>,
        Option<MusicEventIdentifier<S>>,
        Option<MusicEventImage<S>>,
        Option<MusicEventInLanguage<S>>,
        Option<MusicEventIsAccessibleForFree<S>>,
        Option<MusicEventKeywords<S>>,
        Option<MusicEventLocation<S>>,
        Option<MusicEventMainEntityOfPage<S>>,
        Option<MusicEventMaximumAttendeeCapacity<S>>,
        Option<MusicEventMaximumPhysicalAttendeeCapacity<S>>,
        Option<MusicEventMaximumVirtualAttendeeCapacity<S>>,
        Option<MusicEventName<S>>,
        Option<MusicEventOffers<S>>,
        Option<MusicEventOrganizer<S>>,
        Option<MusicEventPerformer<S>>,
        Option<MusicEventPerformers<S>>,
        Option<MusicEventPotentialAction<S>>,
        Option<MusicEventPreviousStartDate<S>>,
        Option<MusicEventRecordedIn<S>>,
        Option<MusicEventRemainingAttendeeCapacity<S>>,
        Option<MusicEventReview<S>>,
        Option<MusicEventSameAs<S>>,
        Option<MusicEventSponsor<S>>,
        Option<MusicEventStartDate<S>>,
        Option<MusicEventSubEvent<S>>,
        Option<MusicEventSubEvents<S>>,
        Option<MusicEventSubjectOf<S>>,
        Option<MusicEventSuperEvent<S>>,
        Option<MusicEventTranslator<S>>,
        Option<MusicEventTypicalAgeRange<S>>,
        Option<MusicEventUrl<S>>,
        Option<MusicEventWorkFeatured<S>>,
        Option<MusicEventWorkPerformed<S>>,
    ),
    _type: PhantomData<fn() -> S>,
}

impl MusicEvent<DefaultStr> {
    /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
    pub fn new() -> MusicEventBuilder<music_event_state::Empty, DefaultStr> {
        MusicEventBuilder::new()
    }
}

impl<S: BosStr> MusicEvent<S> {
    /// Create a new builder for this type
    pub fn builder() -> MusicEventBuilder<music_event_state::Empty, S> {
        MusicEventBuilder::builder()
    }
}

impl MusicEventBuilder<music_event_state::Empty, DefaultStr> {
    /// Create a new builder with all fields unset, using the default string type, if needed
    pub fn new() -> Self {
        MusicEventBuilder {
            _state: PhantomData,
            _fields: (
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
            ),
            _type: PhantomData,
        }
    }
}

impl<S: BosStr> MusicEventBuilder<music_event_state::Empty, S> {
    /// Create a new builder with all fields unset
    pub fn builder() -> Self {
        MusicEventBuilder {
            _state: PhantomData,
            _fields: (
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
                None,
            ),
            _type: PhantomData,
        }
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `about` field (optional)
    pub fn about(mut self, value: impl Into<Option<MusicEventAbout<S>>>) -> Self {
        self._fields.0 = value.into();
        self
    }
    /// Set the `about` field to an Option value (optional)
    pub fn maybe_about(mut self, value: Option<MusicEventAbout<S>>) -> Self {
        self._fields.0 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `actor` field (optional)
    pub fn actor(mut self, value: impl Into<Option<MusicEventActor<S>>>) -> Self {
        self._fields.1 = value.into();
        self
    }
    /// Set the `actor` field to an Option value (optional)
    pub fn maybe_actor(mut self, value: Option<MusicEventActor<S>>) -> Self {
        self._fields.1 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `additionalType` field (optional)
    pub fn additional_type(
        mut self,
        value: impl Into<Option<MusicEventAdditionalType<S>>>,
    ) -> Self {
        self._fields.2 = value.into();
        self
    }
    /// Set the `additionalType` field to an Option value (optional)
    pub fn maybe_additional_type(
        mut self,
        value: Option<MusicEventAdditionalType<S>>,
    ) -> Self {
        self._fields.2 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `aggregateRating` field (optional)
    pub fn aggregate_rating(
        mut self,
        value: impl Into<Option<MusicEventAggregateRating<S>>>,
    ) -> Self {
        self._fields.3 = value.into();
        self
    }
    /// Set the `aggregateRating` field to an Option value (optional)
    pub fn maybe_aggregate_rating(
        mut self,
        value: Option<MusicEventAggregateRating<S>>,
    ) -> Self {
        self._fields.3 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `alternateName` field (optional)
    pub fn alternate_name(
        mut self,
        value: impl Into<Option<MusicEventAlternateName<S>>>,
    ) -> Self {
        self._fields.4 = value.into();
        self
    }
    /// Set the `alternateName` field to an Option value (optional)
    pub fn maybe_alternate_name(
        mut self,
        value: Option<MusicEventAlternateName<S>>,
    ) -> Self {
        self._fields.4 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `attendee` field (optional)
    pub fn attendee(mut self, value: impl Into<Option<MusicEventAttendee<S>>>) -> Self {
        self._fields.5 = value.into();
        self
    }
    /// Set the `attendee` field to an Option value (optional)
    pub fn maybe_attendee(mut self, value: Option<MusicEventAttendee<S>>) -> Self {
        self._fields.5 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `attendees` field (optional)
    pub fn attendees(
        mut self,
        value: impl Into<Option<MusicEventAttendees<S>>>,
    ) -> Self {
        self._fields.6 = value.into();
        self
    }
    /// Set the `attendees` field to an Option value (optional)
    pub fn maybe_attendees(mut self, value: Option<MusicEventAttendees<S>>) -> Self {
        self._fields.6 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `audience` field (optional)
    pub fn audience(mut self, value: impl Into<Option<MusicEventAudience<S>>>) -> Self {
        self._fields.7 = value.into();
        self
    }
    /// Set the `audience` field to an Option value (optional)
    pub fn maybe_audience(mut self, value: Option<MusicEventAudience<S>>) -> Self {
        self._fields.7 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `composer` field (optional)
    pub fn composer(mut self, value: impl Into<Option<MusicEventComposer<S>>>) -> Self {
        self._fields.8 = value.into();
        self
    }
    /// Set the `composer` field to an Option value (optional)
    pub fn maybe_composer(mut self, value: Option<MusicEventComposer<S>>) -> Self {
        self._fields.8 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `contributor` field (optional)
    pub fn contributor(
        mut self,
        value: impl Into<Option<MusicEventContributor<S>>>,
    ) -> Self {
        self._fields.9 = value.into();
        self
    }
    /// Set the `contributor` field to an Option value (optional)
    pub fn maybe_contributor(mut self, value: Option<MusicEventContributor<S>>) -> Self {
        self._fields.9 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `description` field (optional)
    pub fn description(
        mut self,
        value: impl Into<Option<MusicEventDescription<S>>>,
    ) -> Self {
        self._fields.10 = value.into();
        self
    }
    /// Set the `description` field to an Option value (optional)
    pub fn maybe_description(mut self, value: Option<MusicEventDescription<S>>) -> Self {
        self._fields.10 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `director` field (optional)
    pub fn director(mut self, value: impl Into<Option<MusicEventDirector<S>>>) -> Self {
        self._fields.11 = value.into();
        self
    }
    /// Set the `director` field to an Option value (optional)
    pub fn maybe_director(mut self, value: Option<MusicEventDirector<S>>) -> Self {
        self._fields.11 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `disambiguatingDescription` field (optional)
    pub fn disambiguating_description(
        mut self,
        value: impl Into<Option<MusicEventDisambiguatingDescription<S>>>,
    ) -> Self {
        self._fields.12 = value.into();
        self
    }
    /// Set the `disambiguatingDescription` field to an Option value (optional)
    pub fn maybe_disambiguating_description(
        mut self,
        value: Option<MusicEventDisambiguatingDescription<S>>,
    ) -> Self {
        self._fields.12 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `doorTime` field (optional)
    pub fn door_time(mut self, value: impl Into<Option<MusicEventDoorTime<S>>>) -> Self {
        self._fields.13 = value.into();
        self
    }
    /// Set the `doorTime` field to an Option value (optional)
    pub fn maybe_door_time(mut self, value: Option<MusicEventDoorTime<S>>) -> Self {
        self._fields.13 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `duration` field (optional)
    pub fn duration(mut self, value: impl Into<Option<MusicEventDuration<S>>>) -> Self {
        self._fields.14 = value.into();
        self
    }
    /// Set the `duration` field to an Option value (optional)
    pub fn maybe_duration(mut self, value: Option<MusicEventDuration<S>>) -> Self {
        self._fields.14 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `endDate` field (optional)
    pub fn end_date(mut self, value: impl Into<Option<MusicEventEndDate<S>>>) -> Self {
        self._fields.15 = value.into();
        self
    }
    /// Set the `endDate` field to an Option value (optional)
    pub fn maybe_end_date(mut self, value: Option<MusicEventEndDate<S>>) -> Self {
        self._fields.15 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `eventAttendanceMode` field (optional)
    pub fn event_attendance_mode(
        mut self,
        value: impl Into<Option<MusicEventEventAttendanceMode<S>>>,
    ) -> Self {
        self._fields.16 = value.into();
        self
    }
    /// Set the `eventAttendanceMode` field to an Option value (optional)
    pub fn maybe_event_attendance_mode(
        mut self,
        value: Option<MusicEventEventAttendanceMode<S>>,
    ) -> Self {
        self._fields.16 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `eventSchedule` field (optional)
    pub fn event_schedule(
        mut self,
        value: impl Into<Option<MusicEventEventSchedule<S>>>,
    ) -> Self {
        self._fields.17 = value.into();
        self
    }
    /// Set the `eventSchedule` field to an Option value (optional)
    pub fn maybe_event_schedule(
        mut self,
        value: Option<MusicEventEventSchedule<S>>,
    ) -> Self {
        self._fields.17 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `eventStatus` field (optional)
    pub fn event_status(
        mut self,
        value: impl Into<Option<MusicEventEventStatus<S>>>,
    ) -> Self {
        self._fields.18 = value.into();
        self
    }
    /// Set the `eventStatus` field to an Option value (optional)
    pub fn maybe_event_status(
        mut self,
        value: Option<MusicEventEventStatus<S>>,
    ) -> Self {
        self._fields.18 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `funder` field (optional)
    pub fn funder(mut self, value: impl Into<Option<MusicEventFunder<S>>>) -> Self {
        self._fields.19 = value.into();
        self
    }
    /// Set the `funder` field to an Option value (optional)
    pub fn maybe_funder(mut self, value: Option<MusicEventFunder<S>>) -> Self {
        self._fields.19 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `funding` field (optional)
    pub fn funding(mut self, value: impl Into<Option<MusicEventFunding<S>>>) -> Self {
        self._fields.20 = value.into();
        self
    }
    /// Set the `funding` field to an Option value (optional)
    pub fn maybe_funding(mut self, value: Option<MusicEventFunding<S>>) -> Self {
        self._fields.20 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `identifier` field (optional)
    pub fn identifier(
        mut self,
        value: impl Into<Option<MusicEventIdentifier<S>>>,
    ) -> Self {
        self._fields.21 = value.into();
        self
    }
    /// Set the `identifier` field to an Option value (optional)
    pub fn maybe_identifier(mut self, value: Option<MusicEventIdentifier<S>>) -> Self {
        self._fields.21 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `image` field (optional)
    pub fn image(mut self, value: impl Into<Option<MusicEventImage<S>>>) -> Self {
        self._fields.22 = value.into();
        self
    }
    /// Set the `image` field to an Option value (optional)
    pub fn maybe_image(mut self, value: Option<MusicEventImage<S>>) -> Self {
        self._fields.22 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `inLanguage` field (optional)
    pub fn in_language(
        mut self,
        value: impl Into<Option<MusicEventInLanguage<S>>>,
    ) -> Self {
        self._fields.23 = value.into();
        self
    }
    /// Set the `inLanguage` field to an Option value (optional)
    pub fn maybe_in_language(mut self, value: Option<MusicEventInLanguage<S>>) -> Self {
        self._fields.23 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `isAccessibleForFree` field (optional)
    pub fn is_accessible_for_free(
        mut self,
        value: impl Into<Option<MusicEventIsAccessibleForFree<S>>>,
    ) -> Self {
        self._fields.24 = value.into();
        self
    }
    /// Set the `isAccessibleForFree` field to an Option value (optional)
    pub fn maybe_is_accessible_for_free(
        mut self,
        value: Option<MusicEventIsAccessibleForFree<S>>,
    ) -> Self {
        self._fields.24 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `keywords` field (optional)
    pub fn keywords(mut self, value: impl Into<Option<MusicEventKeywords<S>>>) -> Self {
        self._fields.25 = value.into();
        self
    }
    /// Set the `keywords` field to an Option value (optional)
    pub fn maybe_keywords(mut self, value: Option<MusicEventKeywords<S>>) -> Self {
        self._fields.25 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `location` field (optional)
    pub fn location(mut self, value: impl Into<Option<MusicEventLocation<S>>>) -> Self {
        self._fields.26 = value.into();
        self
    }
    /// Set the `location` field to an Option value (optional)
    pub fn maybe_location(mut self, value: Option<MusicEventLocation<S>>) -> Self {
        self._fields.26 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `mainEntityOfPage` field (optional)
    pub fn main_entity_of_page(
        mut self,
        value: impl Into<Option<MusicEventMainEntityOfPage<S>>>,
    ) -> Self {
        self._fields.27 = value.into();
        self
    }
    /// Set the `mainEntityOfPage` field to an Option value (optional)
    pub fn maybe_main_entity_of_page(
        mut self,
        value: Option<MusicEventMainEntityOfPage<S>>,
    ) -> Self {
        self._fields.27 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `maximumAttendeeCapacity` field (optional)
    pub fn maximum_attendee_capacity(
        mut self,
        value: impl Into<Option<MusicEventMaximumAttendeeCapacity<S>>>,
    ) -> Self {
        self._fields.28 = value.into();
        self
    }
    /// Set the `maximumAttendeeCapacity` field to an Option value (optional)
    pub fn maybe_maximum_attendee_capacity(
        mut self,
        value: Option<MusicEventMaximumAttendeeCapacity<S>>,
    ) -> Self {
        self._fields.28 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `maximumPhysicalAttendeeCapacity` field (optional)
    pub fn maximum_physical_attendee_capacity(
        mut self,
        value: impl Into<Option<MusicEventMaximumPhysicalAttendeeCapacity<S>>>,
    ) -> Self {
        self._fields.29 = value.into();
        self
    }
    /// Set the `maximumPhysicalAttendeeCapacity` field to an Option value (optional)
    pub fn maybe_maximum_physical_attendee_capacity(
        mut self,
        value: Option<MusicEventMaximumPhysicalAttendeeCapacity<S>>,
    ) -> Self {
        self._fields.29 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `maximumVirtualAttendeeCapacity` field (optional)
    pub fn maximum_virtual_attendee_capacity(
        mut self,
        value: impl Into<Option<MusicEventMaximumVirtualAttendeeCapacity<S>>>,
    ) -> Self {
        self._fields.30 = value.into();
        self
    }
    /// Set the `maximumVirtualAttendeeCapacity` field to an Option value (optional)
    pub fn maybe_maximum_virtual_attendee_capacity(
        mut self,
        value: Option<MusicEventMaximumVirtualAttendeeCapacity<S>>,
    ) -> Self {
        self._fields.30 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `name` field (optional)
    pub fn name(mut self, value: impl Into<Option<MusicEventName<S>>>) -> Self {
        self._fields.31 = value.into();
        self
    }
    /// Set the `name` field to an Option value (optional)
    pub fn maybe_name(mut self, value: Option<MusicEventName<S>>) -> Self {
        self._fields.31 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `offers` field (optional)
    pub fn offers(mut self, value: impl Into<Option<MusicEventOffers<S>>>) -> Self {
        self._fields.32 = value.into();
        self
    }
    /// Set the `offers` field to an Option value (optional)
    pub fn maybe_offers(mut self, value: Option<MusicEventOffers<S>>) -> Self {
        self._fields.32 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `organizer` field (optional)
    pub fn organizer(
        mut self,
        value: impl Into<Option<MusicEventOrganizer<S>>>,
    ) -> Self {
        self._fields.33 = value.into();
        self
    }
    /// Set the `organizer` field to an Option value (optional)
    pub fn maybe_organizer(mut self, value: Option<MusicEventOrganizer<S>>) -> Self {
        self._fields.33 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `performer` field (optional)
    pub fn performer(
        mut self,
        value: impl Into<Option<MusicEventPerformer<S>>>,
    ) -> Self {
        self._fields.34 = value.into();
        self
    }
    /// Set the `performer` field to an Option value (optional)
    pub fn maybe_performer(mut self, value: Option<MusicEventPerformer<S>>) -> Self {
        self._fields.34 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `performers` field (optional)
    pub fn performers(
        mut self,
        value: impl Into<Option<MusicEventPerformers<S>>>,
    ) -> Self {
        self._fields.35 = value.into();
        self
    }
    /// Set the `performers` field to an Option value (optional)
    pub fn maybe_performers(mut self, value: Option<MusicEventPerformers<S>>) -> Self {
        self._fields.35 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `potentialAction` field (optional)
    pub fn potential_action(
        mut self,
        value: impl Into<Option<MusicEventPotentialAction<S>>>,
    ) -> Self {
        self._fields.36 = value.into();
        self
    }
    /// Set the `potentialAction` field to an Option value (optional)
    pub fn maybe_potential_action(
        mut self,
        value: Option<MusicEventPotentialAction<S>>,
    ) -> Self {
        self._fields.36 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `previousStartDate` field (optional)
    pub fn previous_start_date(
        mut self,
        value: impl Into<Option<MusicEventPreviousStartDate<S>>>,
    ) -> Self {
        self._fields.37 = value.into();
        self
    }
    /// Set the `previousStartDate` field to an Option value (optional)
    pub fn maybe_previous_start_date(
        mut self,
        value: Option<MusicEventPreviousStartDate<S>>,
    ) -> Self {
        self._fields.37 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `recordedIn` field (optional)
    pub fn recorded_in(
        mut self,
        value: impl Into<Option<MusicEventRecordedIn<S>>>,
    ) -> Self {
        self._fields.38 = value.into();
        self
    }
    /// Set the `recordedIn` field to an Option value (optional)
    pub fn maybe_recorded_in(mut self, value: Option<MusicEventRecordedIn<S>>) -> Self {
        self._fields.38 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `remainingAttendeeCapacity` field (optional)
    pub fn remaining_attendee_capacity(
        mut self,
        value: impl Into<Option<MusicEventRemainingAttendeeCapacity<S>>>,
    ) -> Self {
        self._fields.39 = value.into();
        self
    }
    /// Set the `remainingAttendeeCapacity` field to an Option value (optional)
    pub fn maybe_remaining_attendee_capacity(
        mut self,
        value: Option<MusicEventRemainingAttendeeCapacity<S>>,
    ) -> Self {
        self._fields.39 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `review` field (optional)
    pub fn review(mut self, value: impl Into<Option<MusicEventReview<S>>>) -> Self {
        self._fields.40 = value.into();
        self
    }
    /// Set the `review` field to an Option value (optional)
    pub fn maybe_review(mut self, value: Option<MusicEventReview<S>>) -> Self {
        self._fields.40 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `sameAs` field (optional)
    pub fn same_as(mut self, value: impl Into<Option<MusicEventSameAs<S>>>) -> Self {
        self._fields.41 = value.into();
        self
    }
    /// Set the `sameAs` field to an Option value (optional)
    pub fn maybe_same_as(mut self, value: Option<MusicEventSameAs<S>>) -> Self {
        self._fields.41 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `sponsor` field (optional)
    pub fn sponsor(mut self, value: impl Into<Option<MusicEventSponsor<S>>>) -> Self {
        self._fields.42 = value.into();
        self
    }
    /// Set the `sponsor` field to an Option value (optional)
    pub fn maybe_sponsor(mut self, value: Option<MusicEventSponsor<S>>) -> Self {
        self._fields.42 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `startDate` field (optional)
    pub fn start_date(
        mut self,
        value: impl Into<Option<MusicEventStartDate<S>>>,
    ) -> Self {
        self._fields.43 = value.into();
        self
    }
    /// Set the `startDate` field to an Option value (optional)
    pub fn maybe_start_date(mut self, value: Option<MusicEventStartDate<S>>) -> Self {
        self._fields.43 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `subEvent` field (optional)
    pub fn sub_event(mut self, value: impl Into<Option<MusicEventSubEvent<S>>>) -> Self {
        self._fields.44 = value.into();
        self
    }
    /// Set the `subEvent` field to an Option value (optional)
    pub fn maybe_sub_event(mut self, value: Option<MusicEventSubEvent<S>>) -> Self {
        self._fields.44 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `subEvents` field (optional)
    pub fn sub_events(
        mut self,
        value: impl Into<Option<MusicEventSubEvents<S>>>,
    ) -> Self {
        self._fields.45 = value.into();
        self
    }
    /// Set the `subEvents` field to an Option value (optional)
    pub fn maybe_sub_events(mut self, value: Option<MusicEventSubEvents<S>>) -> Self {
        self._fields.45 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `subjectOf` field (optional)
    pub fn subject_of(
        mut self,
        value: impl Into<Option<MusicEventSubjectOf<S>>>,
    ) -> Self {
        self._fields.46 = value.into();
        self
    }
    /// Set the `subjectOf` field to an Option value (optional)
    pub fn maybe_subject_of(mut self, value: Option<MusicEventSubjectOf<S>>) -> Self {
        self._fields.46 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `superEvent` field (optional)
    pub fn super_event(
        mut self,
        value: impl Into<Option<MusicEventSuperEvent<S>>>,
    ) -> Self {
        self._fields.47 = value.into();
        self
    }
    /// Set the `superEvent` field to an Option value (optional)
    pub fn maybe_super_event(mut self, value: Option<MusicEventSuperEvent<S>>) -> Self {
        self._fields.47 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `translator` field (optional)
    pub fn translator(
        mut self,
        value: impl Into<Option<MusicEventTranslator<S>>>,
    ) -> Self {
        self._fields.48 = value.into();
        self
    }
    /// Set the `translator` field to an Option value (optional)
    pub fn maybe_translator(mut self, value: Option<MusicEventTranslator<S>>) -> Self {
        self._fields.48 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `typicalAgeRange` field (optional)
    pub fn typical_age_range(
        mut self,
        value: impl Into<Option<MusicEventTypicalAgeRange<S>>>,
    ) -> Self {
        self._fields.49 = value.into();
        self
    }
    /// Set the `typicalAgeRange` field to an Option value (optional)
    pub fn maybe_typical_age_range(
        mut self,
        value: Option<MusicEventTypicalAgeRange<S>>,
    ) -> Self {
        self._fields.49 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `url` field (optional)
    pub fn url(mut self, value: impl Into<Option<MusicEventUrl<S>>>) -> Self {
        self._fields.50 = value.into();
        self
    }
    /// Set the `url` field to an Option value (optional)
    pub fn maybe_url(mut self, value: Option<MusicEventUrl<S>>) -> Self {
        self._fields.50 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `workFeatured` field (optional)
    pub fn work_featured(
        mut self,
        value: impl Into<Option<MusicEventWorkFeatured<S>>>,
    ) -> Self {
        self._fields.51 = value.into();
        self
    }
    /// Set the `workFeatured` field to an Option value (optional)
    pub fn maybe_work_featured(
        mut self,
        value: Option<MusicEventWorkFeatured<S>>,
    ) -> Self {
        self._fields.51 = value;
        self
    }
}

impl<St: music_event_state::State, S: BosStr> MusicEventBuilder<St, S> {
    /// Set the `workPerformed` field (optional)
    pub fn work_performed(
        mut self,
        value: impl Into<Option<MusicEventWorkPerformed<S>>>,
    ) -> Self {
        self._fields.52 = value.into();
        self
    }
    /// Set the `workPerformed` field to an Option value (optional)
    pub fn maybe_work_performed(
        mut self,
        value: Option<MusicEventWorkPerformed<S>>,
    ) -> Self {
        self._fields.52 = value;
        self
    }
}

impl<St, S: BosStr> MusicEventBuilder<St, S>
where
    St: music_event_state::State,
{
    /// Build the final struct.
    pub fn build(self) -> MusicEvent<S> {
        MusicEvent {
            about: self._fields.0,
            actor: self._fields.1,
            additional_type: self._fields.2,
            aggregate_rating: self._fields.3,
            alternate_name: self._fields.4,
            attendee: self._fields.5,
            attendees: self._fields.6,
            audience: self._fields.7,
            composer: self._fields.8,
            contributor: self._fields.9,
            description: self._fields.10,
            director: self._fields.11,
            disambiguating_description: self._fields.12,
            door_time: self._fields.13,
            duration: self._fields.14,
            end_date: self._fields.15,
            event_attendance_mode: self._fields.16,
            event_schedule: self._fields.17,
            event_status: self._fields.18,
            funder: self._fields.19,
            funding: self._fields.20,
            identifier: self._fields.21,
            image: self._fields.22,
            in_language: self._fields.23,
            is_accessible_for_free: self._fields.24,
            keywords: self._fields.25,
            location: self._fields.26,
            main_entity_of_page: self._fields.27,
            maximum_attendee_capacity: self._fields.28,
            maximum_physical_attendee_capacity: self._fields.29,
            maximum_virtual_attendee_capacity: self._fields.30,
            name: self._fields.31,
            offers: self._fields.32,
            organizer: self._fields.33,
            performer: self._fields.34,
            performers: self._fields.35,
            potential_action: self._fields.36,
            previous_start_date: self._fields.37,
            recorded_in: self._fields.38,
            remaining_attendee_capacity: self._fields.39,
            review: self._fields.40,
            same_as: self._fields.41,
            sponsor: self._fields.42,
            start_date: self._fields.43,
            sub_event: self._fields.44,
            sub_events: self._fields.45,
            subject_of: self._fields.46,
            super_event: self._fields.47,
            translator: self._fields.48,
            typical_age_range: self._fields.49,
            url: self._fields.50,
            work_featured: self._fields.51,
            work_performed: self._fields.52,
            extra_data: Default::default(),
        }
    }
    /// Build the final struct with custom extra_data.
    pub fn build_with_data(
        self,
        extra_data: BTreeMap<SmolStr, Data<S>>,
    ) -> MusicEvent<S> {
        MusicEvent {
            about: self._fields.0,
            actor: self._fields.1,
            additional_type: self._fields.2,
            aggregate_rating: self._fields.3,
            alternate_name: self._fields.4,
            attendee: self._fields.5,
            attendees: self._fields.6,
            audience: self._fields.7,
            composer: self._fields.8,
            contributor: self._fields.9,
            description: self._fields.10,
            director: self._fields.11,
            disambiguating_description: self._fields.12,
            door_time: self._fields.13,
            duration: self._fields.14,
            end_date: self._fields.15,
            event_attendance_mode: self._fields.16,
            event_schedule: self._fields.17,
            event_status: self._fields.18,
            funder: self._fields.19,
            funding: self._fields.20,
            identifier: self._fields.21,
            image: self._fields.22,
            in_language: self._fields.23,
            is_accessible_for_free: self._fields.24,
            keywords: self._fields.25,
            location: self._fields.26,
            main_entity_of_page: self._fields.27,
            maximum_attendee_capacity: self._fields.28,
            maximum_physical_attendee_capacity: self._fields.29,
            maximum_virtual_attendee_capacity: self._fields.30,
            name: self._fields.31,
            offers: self._fields.32,
            organizer: self._fields.33,
            performer: self._fields.34,
            performers: self._fields.35,
            potential_action: self._fields.36,
            previous_start_date: self._fields.37,
            recorded_in: self._fields.38,
            remaining_attendee_capacity: self._fields.39,
            review: self._fields.40,
            same_as: self._fields.41,
            sponsor: self._fields.42,
            start_date: self._fields.43,
            sub_event: self._fields.44,
            sub_events: self._fields.45,
            subject_of: self._fields.46,
            super_event: self._fields.47,
            translator: self._fields.48,
            typical_age_range: self._fields.49,
            url: self._fields.50,
            work_featured: self._fields.51,
            work_performed: self._fields.52,
            extra_data: Some(extra_data),
        }
    }
}