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<(String, String)>,
pub content_nibbles: Vec<(u8, u8, u8)>,
pub ratings: Vec<(String, u8)>,
pub crids: Vec<(u8, String)>,
}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§
§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<(String, String)>Accumulated extended event items (description, value) from all
ExtendedEventDescriptor
fragments, sorted by descriptor_number.
content_nibbles: Vec<(u8, u8, u8)>Content genre entries (nibble_1, nibble_2, user_byte) from
ContentDescriptor.
ratings: Vec<(String, u8)>Parental rating entries (country_code, rating) from
ParentalRatingDescriptor.
crids: Vec<(u8, String)>CRID entries (crid_type, inline_crid) from
ContentIdentifierDescriptor.