pub struct Repeat {
pub frequency: RepeatFrequency,
pub until: Option<RepeatUntil>,
pub until_date: Option<Date>,
pub count: Option<u32>,
}Expand description
An event’s recurrence.
Repeat::default() is RepeatFrequency::Custom with no end, which says “keep the
schedule the event already has”. On an occurrence update that makes
Some(Repeat::default()) and None mean the same thing — leave the series’ schedule
alone — since CalendarEvents::update_occurrence sends Custom for a None one
anyway. Everywhere else the two differ: a None writes no recurrence field at all.
Fields§
§frequency: RepeatFrequencyHow often the event repeats.
until: Option<RepeatUntil>When it stops. None says nothing about an end.
until_date: Option<Date>Read only when until is RepeatUntil::Date.
count: Option<u32>Read only when until is RepeatUntil::Count.
Trait Implementations§
impl Eq for Repeat
impl StructuralPartialEq for Repeat
Auto Trait Implementations§
impl Freeze for Repeat
impl RefUnwindSafe for Repeat
impl Send for Repeat
impl Sync for Repeat
impl Unpin for Repeat
impl UnsafeUnpin for Repeat
impl UnwindSafe for Repeat
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.