pub struct ICalendar<'a>(_);
Expand description
The iCalendar object specified as “VCALENDAR”.
An ICalendar
consists of calendar properties and one or more calendar components. Properties are attributes that apply to the calendar object as a whole. (see RFC 5545 3.4 iCalendar Object)
ICalendar can be thought of as the iCalendar file. This is where the
specified components are added. To save the object as file, it needs to be
written to a file.
Implementations§
source§impl<'a> ICalendar<'a>
impl<'a> ICalendar<'a>
sourcepub fn new<V, P>(version: V, prodid: P) -> Selfwhere
V: Into<Cow<'a, str>>,
P: Into<Cow<'a, str>>,
pub fn new<V, P>(version: V, prodid: P) -> Selfwhere
V: Into<Cow<'a, str>>,
P: Into<Cow<'a, str>>,
Creates a new iCalendar object/“VCALENDAR” calendar component. The “VERSION” and “PRODID” properties are required.
sourcepub fn push<P>(&mut self, property: P)where
P: Into<Property<'a>>,
pub fn push<P>(&mut self, property: P)where
P: Into<Property<'a>>,
Adds a property to the iCalendar object. Calendar properties are like calendar attributes.
sourcepub fn add_component<C>(&mut self, component: C)where
C: Into<Component<'a>>,
pub fn add_component<C>(&mut self, component: C)where
C: Into<Component<'a>>,
Adds a Component
to the iCalendar object. This should be only used
for IANA/non-standard components.
sourcepub fn add_journal(&mut self, journal: Journal<'a>)
pub fn add_journal(&mut self, journal: Journal<'a>)
Adds a Journal
component to the iCalendar object.
sourcepub fn add_freebusy(&mut self, freebusy: FreeBusy<'a>)
pub fn add_freebusy(&mut self, freebusy: FreeBusy<'a>)
Adds a FreeBusy
component to the iCalendar object.
sourcepub fn add_timezone(&mut self, timezone: TimeZone<'a>)
pub fn add_timezone(&mut self, timezone: TimeZone<'a>)
Adds a TimeZone
component to the iCalendar object.
Trait Implementations§
source§impl<'a> Ord for ICalendar<'a>
impl<'a> Ord for ICalendar<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl<'a> PartialEq<ICalendar<'a>> for ICalendar<'a>
impl<'a> PartialEq<ICalendar<'a>> for ICalendar<'a>
source§impl<'a> PartialOrd<ICalendar<'a>> for ICalendar<'a>
impl<'a> PartialOrd<ICalendar<'a>> for ICalendar<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more