icalendar

Trait EventLike

Source
pub trait EventLike: Component {
    // Provided methods
    fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self { ... }
    fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self { ... }
    fn all_day(&mut self, date: NaiveDate) -> &mut Self { ... }
    fn venue(&mut self, location: &str, venue_uid: &str) -> &mut Self { ... }
    fn location(&mut self, location: &str) -> &mut Self { ... }
    fn get_location(&self) -> Option<&str> { ... }
    fn alarm<A: Into<Alarm>>(&mut self, alarm: A) -> &mut Self { ... }
}
Expand description

Common trait of Event and Todo

Provided Methods§

Source

fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self

Set the DTSTART Property

See DatePerhapsTime for info how are different chrono types converted automatically.

Source

fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self

Set the DTEND Property

See DatePerhapsTime for info how are different chrono types converted automatically.

Source

fn all_day(&mut self, date: NaiveDate) -> &mut Self

Set the DTSTART Property and DTEND Property, date only

Source

fn venue(&mut self, location: &str, venue_uid: &str) -> &mut Self

Set the LOCATION with a VVENUE UID iCalender venue draft

Source

fn location(&mut self, location: &str) -> &mut Self

Set the LOCATION 3.8.1.7. Location

Source

fn get_location(&self) -> Option<&str>

Gets the location

Source

fn alarm<A: Into<Alarm>>(&mut self, alarm: A) -> &mut Self

Set the ALARM for this event 3.6.6. Alarm Component

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§