pub struct Alarm<'a>(_);
Expand description
The VALARM calendar component, a sub-component for VEVENT and VTODO.
An Alarm
component is a grouping of component properties that is a
reminder or alarm for an event or a to-do. For example, it may be used to
define a reminder for a pending event or an overdue to-do. (see RFC5545 3.6.6. Alarm Component)
Implementations§
source§impl<'a> Alarm<'a>
impl<'a> Alarm<'a>
sourcepub fn new(action: Action<'a>, trigger: Trigger<'a>) -> Self
pub fn new(action: Action<'a>, trigger: Trigger<'a>) -> Self
Creates a new “VALARM” calendar component. The “ACTION” and “TRIGGER” properties are required.
sourcepub fn audio(trigger: Trigger<'a>) -> Self
pub fn audio(trigger: Trigger<'a>) -> Self
Creates a new audio alarm. The “TRIGGER” property is required.
sourcepub fn display(trigger: Trigger<'a>, description: Description<'a>) -> Self
pub fn display(trigger: Trigger<'a>, description: Description<'a>) -> Self
Creates a new display alarm. The “TRIGGER” and “DESCRIPTION” properties are required.
sourcepub fn email(
trigger: Trigger<'a>,
description: Description<'a>,
summary: Summary<'a>
) -> Self
pub fn email(
trigger: Trigger<'a>,
description: Description<'a>,
summary: Summary<'a>
) -> Self
Creates a new email alarm. The “TRIGGER”, “DESCRIPTION” and “SUMMARY” properties are required.
Trait Implementations§
source§impl<'a> Ord for Alarm<'a>
impl<'a> Ord for Alarm<'a>
source§impl<'a> PartialOrd<Alarm<'a>> for Alarm<'a>
impl<'a> PartialOrd<Alarm<'a>> for Alarm<'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