pub struct Recurrence {
pub rule: String,
pub exdates: Vec<String>,
pub rdates: Vec<Value>,
pub truncate_before: Option<String>,
}Expand description
Recurrence rule and exceptions on an event. rdates entries are either an
RFC 3339 timestamp or a {start, end?, duration?} object, so they are kept
as raw JSON.
Fields§
§rule: StringRFC 5545 RRULE, e.g. FREQ=WEEKLY;BYDAY=MO,WE.
exdates: Vec<String>Occurrence start timestamps to exclude (RFC 3339).
rdates: Vec<Value>Extra occurrences to add: RFC 3339 strings or {start, end?, duration?}.
truncate_before: Option<String>Cutoff after which the series stops recurring (RFC 3339).
Trait Implementations§
Source§impl Clone for Recurrence
impl Clone for Recurrence
Source§impl Debug for Recurrence
impl Debug for Recurrence
Source§impl Default for Recurrence
impl Default for Recurrence
Source§impl<'de> Deserialize<'de> for Recurrence
impl<'de> Deserialize<'de> for Recurrence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Recurrence
impl RefUnwindSafe for Recurrence
impl Send for Recurrence
impl Sync for Recurrence
impl Unpin for Recurrence
impl UnsafeUnpin for Recurrence
impl UnwindSafe for Recurrence
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