#[non_exhaustive]pub struct EpgEvent {
pub event_id: u16,
pub start_time: Option<DateTime<Utc>>,
pub duration: Option<Duration>,
pub running_status: u8,
pub free_ca_mode: bool,
pub event_name: Option<String>,
pub event_text: Option<String>,
pub extended_text: Option<String>,
pub extended_items: Vec<ExtendedItem>,
pub content_nibbles: Vec<ContentNibble>,
pub ratings: Vec<Rating>,
pub crids: Vec<Crid>,
}Expand description
A decoded view of an EPG event.
Extracted from crate::collect::CompleteEitEvent with commonly needed
descriptor fields pre-decoded and extended text concatenated per
EN 300 468 §6.2.15.
§Limitations
Only the first descriptor of each kind (short_event, content, parental_rating, content_identifier) is decoded per event; EIT events may carry multiple language variants and only the first is taken.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event_id: u1616-bit event_id.
start_time: Option<DateTime<Utc>>Decoded start time (MJD + BCD UTC), if valid.
duration: Option<Duration>Decoded BCD duration, if valid.
running_status: u83-bit running status.
free_ca_mode: boolfree_CA_mode.
event_name: Option<String>Decoded short event name (from
ShortEventDescriptor),
if present and decodeable.
event_text: Option<String>Decoded short event text, if present and decodeable.
extended_text: Option<String>Concatenated extended event text from all
ExtendedEventDescriptor
fragments, per EN 300 468 §6.2.15. Fragments are sorted by
descriptor_number and concatenated directly (no separator).
extended_items: Vec<ExtendedItem>Accumulated extended event items (description, value) from all
ExtendedEventDescriptor
fragments, sorted by descriptor_number.
content_nibbles: Vec<ContentNibble>Content genre entries from
ContentDescriptor.
ratings: Vec<Rating>Parental rating entries from
ParentalRatingDescriptor.
crids: Vec<Crid>CRID entries from
ContentIdentifierDescriptor.