eventkit 0.3.2

Safe Rust bindings for Apple's EventKit framework — events, reminders, calendars, sources, participants, structured locations, and virtual conference descriptors on macOS
Documentation
1
2
3
4
5
6
7
8
9
use eventkit::prelude::*;

#[test]
fn calendar_draft_roundtrip_preserves_title() {
    let store = EKEventStore::new().expect("store");
    let draft = EKCalendarDraft::new(EKEntityType::Event, "Example Calendar");
    let roundtrip = draft.roundtrip(&store).expect("roundtrip");
    assert_eq!(roundtrip.title, "Example Calendar");
}