Skip to main content

parse_calendar

Function parse_calendar 

Source
pub fn parse_calendar(content: &str) -> Result<VCalendar>
Expand description

Parse the full ICS document into a typed VCalendar.

The input flows through unfold::unfold first, which strips a leading UTF-8 BOM and joins RFC 5545 folded continuation lines into logical lines. Calendar-level non-VEVENT components (VTIMEZONE, VJOURNAL, etc.) are preserved into VCalendar.unrecognized_components. Non-typed nested components inside a VEVENT (e.g. VALARM) flow into VEvent.unrecognized_components.