Struct vobject::icalendar::ICalendar [] [src]

pub struct ICalendar(_);

An ICalendar representing type

Methods

impl ICalendar
[src]

[src]

Parse a string to a ICalendar object

Returns an error if the parsed text is not a ICalendar (that means that an error is returned also if this is a valid Vcard!)

[src]

[src]

Add an event to the calendar

[src]

Chainable variant of ICalendar::add_event().

[src]

Wrap a Component into a Vcard object, or don't do it if the Component is not a Vcard.

Important traits for EventIterator<'a>
[src]

Get an iterator over the events in this calendar

The iterator creates Ok(&Event) instances on the fly, or Err(&Component) instances if the item cannot be parsed as an Event, not forgetting any data.

Getting actual objects

For getting a Event-instance iterator from this, one can use this as follows:

icalendar
    .events()
    .filter_map(Result::ok)
    .map(|ev| ev.clone())
    .collect::<Vec<Event>>();

[src]

[src]

Trait Implementations

impl Debug for ICalendar
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ICalendar

impl Sync for ICalendar