pub struct WeeklyWindow {
pub days_of_week: Option<Vec<String>>,
pub end_time: Option<TimeOfDay>,
pub start_time: Option<TimeOfDay>,
}Expand description
Weekly windows. For example, blocking actions every Saturday and Sunday. Another example would be blocking actions every weekday from 5pm to midnight.
This type is not used in any activity, and only used as part of another schema.
Fields§
§days_of_week: Option<Vec<String>>Optional. Days of week. If left empty, all days of the week will be included.
end_time: Option<TimeOfDay>Optional. End time (exclusive). Use 24:00 to indicate midnight. If you specify end_time you must also specify start_time. If left empty, this will block for the entire day for the days specified in days_of_week.
start_time: Option<TimeOfDay>Optional. Start time (inclusive). Use 00:00 for the beginning of the day. If you specify start_time you must also specify end_time. If left empty, this will block for the entire day for the days specified in days_of_week.
Trait Implementations§
Source§impl Clone for WeeklyWindow
impl Clone for WeeklyWindow
Source§fn clone(&self) -> WeeklyWindow
fn clone(&self) -> WeeklyWindow
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 WeeklyWindow
impl Debug for WeeklyWindow
Source§impl Default for WeeklyWindow
impl Default for WeeklyWindow
Source§fn default() -> WeeklyWindow
fn default() -> WeeklyWindow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeeklyWindow
impl<'de> Deserialize<'de> for WeeklyWindow
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 Serialize for WeeklyWindow
impl Serialize for WeeklyWindow
impl Part for WeeklyWindow
Auto Trait Implementations§
impl Freeze for WeeklyWindow
impl RefUnwindSafe for WeeklyWindow
impl Send for WeeklyWindow
impl Sync for WeeklyWindow
impl Unpin for WeeklyWindow
impl UnwindSafe for WeeklyWindow
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