Expand description

A library (far from anything) to generate icalendars This implementation is still far from complete, I haven’t even read the entire spec yet. Instead I implemented the parts I needed first. More to come, contributions very welcome.

Structure

let event = Event::new()
    .summary("test event")
    .description("here I have something really important to do")
    .starts(Utc::now())
    .class(Class::Confidential)
    .ends(Utc::now() + Duration::days(1))
    .append_property(Property::new("TEST", "FOOBAR")
              .add_parameter("IMPORTANCE", "very")
              .add_parameter("DUE", "tomorrow")
              .done())
    .done();

let bday = Event::new()
    .all_day(NaiveDate::from_ymd(2016, 3, 15))
    .summary("My Birthday")
    .description(
r#"Hey, I'm gonna have a party
BYOB: Bring your own beer.
Hendrik"#
)
    .done();

let todo = Todo::new().summary("Buy some milk").done();


let mut calendar = Calendar::new();
calendar.push(event);
calendar.push(todo);
calendar.push(bday);

Breaking API Changes in version 0.7.0

Modules

Parsing iCalendar document parser

Structs

Represents a calendar

key-value pairs inside of Propertys

key-value pairs inside of Components

Enums

Representation of various forms of DATE-TIME per RFC 5545, Section 3.3.5

This property defines the access classification for a calendar component. https://datatracker.ietf.org/doc/html/rfc5545#section-3.8.1.3

Either a DATE-TIME or a DATE.

Traits

Implemented by everything that goes into a Calendar