pub struct Event { /* private fields */ }Expand description
VEVENT (RFC 5545, Section 3.6.1 )
Implementations§
Source§impl 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.
Sourcepub fn remove_status(&mut self) -> &mut Self
pub fn remove_status(&mut self) -> &mut Self
Remove the status property from an event
Trait Implementations§
Source§impl Component for Event
impl Component for Event
Source§fn component_kind(&self) -> String
fn component_kind(&self) -> String
Source§fn components(&self) -> &[Other]
fn components(&self) -> &[Other]
Read-only access to properties
Source§fn multi_properties(&self) -> &BTreeMap<String, Vec<Property>>
fn multi_properties(&self) -> &BTreeMap<String, Vec<Property>>
Read-only access to multi_properties
Source§fn append_component(&mut self, child: impl Into<Other>) -> &mut Self
fn append_component(&mut self, child: impl Into<Other>) -> &mut Self
Appends a Component
Source§fn append_multi_property(&mut self, property: impl Into<Property>) -> &mut Self
fn append_multi_property(&mut self, property: impl Into<Property>) -> &mut Self
Adds a Property of which there may be many
Source§fn remove_property(&mut self, key: &str) -> &mut Self
fn remove_property(&mut self, key: &str) -> &mut Self
Removes a Property by its key if it exists
Source§fn remove_multi_property(&mut self, key: &str) -> &mut Self
fn remove_multi_property(&mut self, key: &str) -> &mut Self
Removes a multi-property by its key if it exists
Source§fn try_into_string(&self) -> Result<String, Error>
fn try_into_string(&self) -> Result<String, Error>
Serializes this component into
rfc5545 againSource§fn add_property(
&mut self,
key: impl Into<String>,
val: impl Into<String>,
) -> &mut Self
fn add_property( &mut self, key: impl Into<String>, val: impl Into<String>, ) -> &mut Self
Construct and append a
PropertySource§fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self
fn add_property_pre_alloc(&mut self, key: String, val: String) -> &mut Self
👎Deprecated
Construct and append a
PropertySource§fn 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
PropertySource§fn remove_timestamp(&mut self) -> &mut Self
fn remove_timestamp(&mut self) -> &mut Self
Source§fn get_recurrence_id(&self) -> Option<DatePerhapsTime>
fn get_recurrence_id(&self) -> Option<DatePerhapsTime>
Gets the
RECURRENCE-ID property.Source§fn remove_priority(&mut self) -> &mut Self
fn remove_priority(&mut self) -> &mut Self
Removes the relative priority.
Source§fn remove_summary(&mut self) -> &mut Self
fn remove_summary(&mut self) -> &mut Self
Removes the summary
Source§fn get_summary(&self) -> Option<&str>
fn get_summary(&self) -> Option<&str>
Gets the summary
Source§fn description(&mut self, desc: &str) -> &mut Self
fn description(&mut self, desc: &str) -> &mut Self
Set the description
Source§fn remove_description(&mut self) -> &mut Self
fn remove_description(&mut self) -> &mut Self
Removes the description
Source§fn get_description(&self) -> Option<&str>
fn get_description(&self) -> Option<&str>
Gets the description
Source§fn remove_sequence(&mut self) -> &mut Self
fn remove_sequence(&mut self) -> &mut Self
Removes the sequence
Source§fn get_sequence(&self) -> Option<u32>
fn get_sequence(&self) -> Option<u32>
Gets the sequence
Source§fn remove_class(&mut self) -> &mut Self
fn remove_class(&mut self) -> &mut Self
Removes the visibility class
Source§fn remove_url(&mut self) -> &mut Self
fn remove_url(&mut self) -> &mut Self
Removes the URL.
Source§fn last_modified(&mut self, dt: DateTime<Utc>) -> &mut Self
fn last_modified(&mut self, dt: DateTime<Utc>) -> &mut Self
Source§fn remove_last_modified(&mut self) -> &mut Self
fn remove_last_modified(&mut self) -> &mut Self
Removes the
LAST-MODIFIED PropertySource§fn get_last_modified(&self) -> Option<DateTime<Utc>>
fn get_last_modified(&self) -> Option<DateTime<Utc>>
Gets the
LAST-MODIFIED property.Source§fn remove_created(&mut self) -> &mut Self
fn remove_created(&mut self) -> &mut Self
Source§impl EventLike for Event
impl EventLike for Event
Source§fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn starts<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
Source§fn remove_starts(&mut self) -> &mut Self
fn remove_starts(&mut self) -> &mut Self
Source§fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn ends<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
Source§fn remove_ends(&mut self) -> &mut Self
fn remove_ends(&mut self) -> &mut Self
Source§fn recurrence_id<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
fn recurrence_id<T: Into<DatePerhapsTime>>(&mut self, dt: T) -> &mut Self
Sets the
RECURRENCE-ID
property. Read moreSource§fn remove_recurrence_id(&mut self) -> &mut Self
fn remove_recurrence_id(&mut self) -> &mut Self
Removes the
RECURRENCE-IDSource§fn venue(&mut self, location: &str, venue_uid: &str) -> &mut Self
fn venue(&mut self, location: &str, venue_uid: &str) -> &mut Self
Set the LOCATION with a VVENUE UID
iCalender venue draft
Source§fn remove_location(&mut self) -> &mut Self
fn remove_location(&mut self) -> &mut Self
Removes the LOCATION with a VVENUE UID
Source§fn get_location(&self) -> Option<&str>
fn get_location(&self) -> Option<&str>
Gets the location
Source§impl From<&Event> for CalendarComponent
impl From<&Event> for CalendarComponent
Source§impl From<&mut Event> for CalendarComponent
impl From<&mut Event> for CalendarComponent
Source§impl From<Event> for CalendarComponent
impl From<Event> for CalendarComponent
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more