pub struct Recurrence {
pub end_time: String,
pub days_of_week: Option<Vec<DayOfWeek>>,
pub days_of_month: Option<Vec<i32>>,
}Expand description
Recurrence : Repeated occurrence of an event in a time range.
Fields§
§end_time: StringEnd time of the recurrence.
days_of_week: Option<Vec<DayOfWeek>>Days of the week when recurrence is valid. If the schedule is valid every Monday, input will only contain MONDAY in the list.
days_of_month: Option<Vec<i32>>Days of the month when recurrence is valid.
Implementations§
Source§impl Recurrence
impl Recurrence
Sourcepub fn new(end_time: String) -> Recurrence
pub fn new(end_time: String) -> Recurrence
Repeated occurrence of an event in a time range.
Trait Implementations§
Source§impl Clone for Recurrence
impl Clone for Recurrence
Source§fn clone(&self) -> Recurrence
fn clone(&self) -> Recurrence
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 Recurrence
impl Debug for Recurrence
Source§impl Default for Recurrence
impl Default for Recurrence
Source§fn default() -> Recurrence
fn default() -> Recurrence
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for Recurrence
impl PartialEq for Recurrence
Source§impl Serialize for Recurrence
impl Serialize for Recurrence
impl StructuralPartialEq for Recurrence
Auto Trait Implementations§
impl Freeze for Recurrence
impl RefUnwindSafe for Recurrence
impl Send for Recurrence
impl Sync for Recurrence
impl Unpin 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