#[non_exhaustive]pub struct RecurringTimeWindow {
pub window: Option<TimeWindow>,
pub recurrence: String,
/* private fields */
}Expand description
Represents an arbitrary window of time that recurs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.window: Option<TimeWindow>The window of the first recurrence.
recurrence: StringAn RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how this window recurs. They go on for the span of time between the start and end time.
Implementations§
Source§impl RecurringTimeWindow
impl RecurringTimeWindow
pub fn new() -> Self
Sourcepub fn set_window<T>(self, v: T) -> Selfwhere
T: Into<TimeWindow>,
pub fn set_window<T>(self, v: T) -> Selfwhere
T: Into<TimeWindow>,
Sets the value of window.
Sourcepub fn set_or_clear_window<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeWindow>,
pub fn set_or_clear_window<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeWindow>,
Sets or clears the value of window.
Sourcepub fn set_recurrence<T: Into<String>>(self, v: T) -> Self
pub fn set_recurrence<T: Into<String>>(self, v: T) -> Self
Sets the value of recurrence.
Trait Implementations§
Source§impl Clone for RecurringTimeWindow
impl Clone for RecurringTimeWindow
Source§fn clone(&self) -> RecurringTimeWindow
fn clone(&self) -> RecurringTimeWindow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecurringTimeWindow
impl Debug for RecurringTimeWindow
Source§impl Default for RecurringTimeWindow
impl Default for RecurringTimeWindow
Source§fn default() -> RecurringTimeWindow
fn default() -> RecurringTimeWindow
Returns the “default value” for a type. Read more
Source§impl Message for RecurringTimeWindow
impl Message for RecurringTimeWindow
Source§impl PartialEq for RecurringTimeWindow
impl PartialEq for RecurringTimeWindow
impl StructuralPartialEq for RecurringTimeWindow
Auto Trait Implementations§
impl Freeze for RecurringTimeWindow
impl RefUnwindSafe for RecurringTimeWindow
impl Send for RecurringTimeWindow
impl Sync for RecurringTimeWindow
impl Unpin for RecurringTimeWindow
impl UnwindSafe for RecurringTimeWindow
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