pub struct IcalEvent {
pub dtstart: IcalDTSTARTProperty,
pub dtend: Option<IcalDTENDProperty>,
/* private fields */
}Fields§
§dtstart: IcalDTSTARTProperty§dtend: Option<IcalDTENDProperty>Implementations§
Source§impl IcalEvent
impl IcalEvent
pub fn get_tzids(&self) -> HashSet<&str>
pub fn get_last_occurence(&self) -> Option<CalDateOrDateTime>
pub fn to_utc_or_local(self) -> Self
pub fn get_duration(&self) -> Option<Duration>
pub fn has_rruleset(&self) -> bool
pub fn get_rruleset(&self, dtstart: DateTime<Tz>) -> Option<RRuleSet>
pub fn expand_recurrence( &self, start: Option<DateTime<Utc>>, end: Option<DateTime<Utc>>, overrides: &[Self], ) -> Vec<Self>
Trait Implementations§
Source§impl Component for IcalEvent
impl Component for IcalEvent
const NAMES: &[&str]
type Unverified = IcalEventBuilder
fn get_properties(&self) -> &Vec<ContentLine>
fn mutable(self) -> Self::Unverified
fn get_comp_name(&self) -> &'static str
fn get_property<'c>(&'c self, name: &str) -> Option<&'c ContentLine>
fn get_named_properties<'c>( &'c self, name: &'c str, ) -> impl Iterator<Item = &'c ContentLine>
Auto Trait Implementations§
impl Freeze for IcalEvent
impl RefUnwindSafe for IcalEvent
impl Send for IcalEvent
impl Sync for IcalEvent
impl Unpin for IcalEvent
impl UnwindSafe for IcalEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C> GetProperty for Cwhere
C: Component,
impl<C> GetProperty for Cwhere
C: Component,
fn safe_get_all<T: ICalProperty>( &self, timezones: Option<&HashMap<String, Option<Tz>>>, ) -> Result<Vec<T>, ParserError>
fn safe_get_optional<T: ICalProperty>( &self, timezones: Option<&HashMap<String, Option<Tz>>>, ) -> Result<Option<T>, ParserError>
fn safe_get_required<T: ICalProperty>( &self, timezones: Option<&HashMap<String, Option<Tz>>>, ) -> Result<T, ParserError>
fn has_prop<T: ICalProperty>(&self) -> bool
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more