pub trait Event {
// Required methods
fn uid(&self) -> &str;
fn description(&self) -> Option<&str>;
fn start(&self) -> Option<LooseDateTime>;
fn end(&self) -> Option<LooseDateTime>;
fn status(&self) -> Option<EventStatus>;
fn summary(&self) -> &str;
// Provided method
fn short_id(&self) -> Option<NonZeroU32> { ... }
}Expand description
Trait representing a calendar event.
Required Methods§
Sourcefn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
The description of the event, if available.
Sourcefn start(&self) -> Option<LooseDateTime>
fn start(&self) -> Option<LooseDateTime>
The location of the event, if available.
Sourcefn end(&self) -> Option<LooseDateTime>
fn end(&self) -> Option<LooseDateTime>
The start date and time of the event, if available.
Sourcefn status(&self) -> Option<EventStatus>
fn status(&self) -> Option<EventStatus>
The status of the event, if available.
Provided Methods§
Sourcefn short_id(&self) -> Option<NonZeroU32>
fn short_id(&self) -> Option<NonZeroU32>
The short identifier for the event.
It will be None if the event does not have a short ID.
It is used for display purposes and may not be unique.