caldata 0.16.2

Ical/Vcard parser for Rust
Documentation
mod error;
pub use error::ParserError;

mod line;
pub use line::{BytesLines, Line, LineError, LineReader};

mod content_line;
pub use content_line::{ContentLine, ContentLineError, ContentLineParams, ContentLineParser};

mod property;
pub(crate) use property::property;
pub use property::{ICalProperty, ParseProp};

mod component;
pub use component::ComponentParser;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ParserOptions {
    /// RFC 7809 allows the omission of VTIMEZONE components for standard timezones
    /// When true, we try to automatically insert missing VTIMEZONE components from the IANA
    /// timezone database.
    #[cfg(feature = "vtimezones-rs")]
    pub rfc7809: bool,
}

#[allow(clippy::derivable_impls)]
impl Default for ParserOptions {
    fn default() -> Self {
        Self {
            #[cfg(feature = "vtimezones-rs")]
            rfc7809: false,
        }
    }
}