pub struct Event<'a>(_);
Expand description
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 RFC 5545 3.6.1. Event Component)
Implementations§
source§impl<'a> Event<'a>
impl<'a> Event<'a>
sourcepub fn new<U, D>(uid: U, dtstamp: D) -> Selfwhere
U: Into<Cow<'a, str>>,
D: Into<Cow<'a, str>>,
pub fn new<U, D>(uid: U, dtstamp: D) -> Selfwhere
U: Into<Cow<'a, str>>,
D: Into<Cow<'a, str>>,
Creates a new “VEVENT” calendar component. The “UID” and “DTSTAMP” properties are required. A UID should be generated random if possible for security reasons.
Trait Implementations§
source§impl<'a> Ord for Event<'a>
impl<'a> Ord for Event<'a>
source§impl<'a> PartialOrd<Event<'a>> for Event<'a>
impl<'a> PartialOrd<Event<'a>> for Event<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more