[][src]Struct ics::Event

pub struct Event<'a> { /* fields omitted */ }

The VEVENT calendar component

An Event component is a grouping of component properties, possibly including an Alarm, that represents a scheduled amount of time on a calendar. (see RFC5545 3.6.1. Event Component)

Implementations

impl<'a> Event<'a>[src]

pub fn new<U, D>(uid: U, dtstamp: D) -> Self where
    U: Into<Cow<'a, str>>,
    D: Into<Cow<'a, str>>, 
[src]

Creates a new VEVENT calendar component. The UID and DTSTAMP properties are required. A UID should be generated randomly for security reasons.

pub fn push<P: Into<Property<'a>>>(&mut self, property: P)[src]

Adds a property to the event. RFC5545 and RFC7986 specify which properties can be added to an event.

pub fn add_alarm(&mut self, alarm: Alarm<'a>)[src]

Adds a VALARM to the event.

Trait Implementations

impl<'a> Clone for Event<'a>[src]

impl<'a> Debug for Event<'a>[src]

impl<'a> Display for Event<'a>[src]

impl<'a> Eq for Event<'a>[src]

impl<'a> From<Event<'a>> for Component<'a>[src]

impl<'a> Hash for Event<'a>[src]

impl<'a> Ord for Event<'a>[src]

impl<'a> PartialEq<Event<'a>> for Event<'a>[src]

impl<'a> PartialOrd<Event<'a>> for Event<'a>[src]

impl<'a> StructuralEq for Event<'a>[src]

impl<'a> StructuralPartialEq for Event<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Event<'a>

impl<'a> Send for Event<'a>

impl<'a> Sync for Event<'a>

impl<'a> Unpin for Event<'a>

impl<'a> UnwindSafe for Event<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.