pub struct Event { /* private fields */ }
Expand description
VEVENT (RFC 5545, Section 3.6.1 )
Implementations
Trait Implementations
sourceimpl Component for Event
impl Component for Event
sourcefn component_kind() -> &'static str
fn component_kind() -> &'static str
Tells you what kind of Component
this is
Might be VEVENT
, VTODO
, VALARM
etc
sourcefn properties(&self) -> &HashMap<String, Property>
fn properties(&self) -> &HashMap<String, Property>
Read-only access to properties
sourcefn multi_properties(&self) -> &Vec<Property>
fn multi_properties(&self) -> &Vec<Property>
Read-only access to multi_properties
sourcefn append_property(&mut self, property: Property) -> &mut Self
fn append_property(&mut self, property: Property) -> &mut Self
Adds a Property
sourcefn append_multi_property(&mut self, property: Property) -> &mut Self
fn append_multi_property(&mut self, property: Property) -> &mut Self
Adds a Property
of which there may be many
sourcefn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>
fn fmt_write<W: Write>(&self, out: &mut W) -> Result<(), Error>
Writes
Component
into a Writer
using std::fmt
.sourcefn add_property(&mut self, key: &str, val: &str) -> &mut Self
fn add_property(&mut self, key: &str, val: &str) -> &mut Self
Construct and append a
Property
sourcefn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
fn add_multi_property(&mut self, key: &str, val: &str) -> &mut Self
Construct and append a
Property
sourcefn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn starts<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTSTART
Property
sourcefn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn ends<TZ: TimeZone>(&mut self, dt: DateTime<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTEND
Property
sourcefn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn start_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTSTART
Property
, date onlysourcefn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn end_date<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTEND
Property
, date onlysourcefn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
fn all_day<TZ: TimeZone>(&mut self, date: Date<TZ>) -> &mut Selfwhere
TZ::Offset: Display,
Set the DTSTART
Property
, date onlysourcefn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Set the description
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more