pub struct Event { /* private fields */ }
Expand description
VEVENT (RFC 5545, Section 3.6.1 )
Implementations
sourceimpl Event
impl Event
sourcepub fn status(&mut self, status: EventStatus) -> &mut Self
pub fn status(&mut self, status: EventStatus) -> &mut Self
Defines the overall status or confirmation
sourcepub fn get_status(&self) -> Option<EventStatus>
pub fn get_status(&self) -> Option<EventStatus>
Gets the overall status or confirmation.
Trait Implementations
sourceimpl Component for Event
impl Component for Event
sourcefn component_kind(&self) -> String
fn component_kind(&self) -> String
sourcefn properties(&self) -> &BTreeMap<String, Property>
fn properties(&self) -> &BTreeMap<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 property_value(&self, key: &str) -> Option<&str>
fn property_value(&self, key: &str) -> Option<&str>
Gets the value of a property.
sourcefn try_into_string(&self) -> Result<String, Error>
fn try_into_string(&self) -> Result<String, Error>
Serializes this component into rfc5545
again
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<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
sourcefn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
sourcefn get_priority(&self) -> Option<u32>
fn get_priority(&self) -> Option<u32>
Gets the relative priority. Read more
sourcefn get_summary(&self) -> Option<&str>
fn get_summary(&self) -> Option<&str>
Gets the summary
sourcefn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Set the description
sourcefn get_description(&self) -> Option<&str>
fn get_description(&self) -> Option<&str>
Gets the description
sourcefn location(&mut self, location: &str) -> &mut Self
fn location(&mut self, location: &str) -> &mut Self
Set the LOCATION 3.8.1.7. Location Read more
sourcefn get_location(&self) -> Option<&str>
fn get_location(&self) -> Option<&str>
Gets the location
sourceimpl From<Event> for CalendarComponent
impl From<Event> for CalendarComponent
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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