#[non_exhaustive]pub struct TimeWindows {
pub time_zone: String,
pub one_time_windows: Vec<OneTimeWindow>,
pub weekly_windows: Vec<WeeklyWindow>,
/* private fields */
}
Expand description
Time windows within which actions are restricted. See the documentation for more information on how to configure dates/times.
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.time_zone: String
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
one_time_windows: Vec<OneTimeWindow>
Optional. One-time windows within which actions are restricted.
weekly_windows: Vec<WeeklyWindow>
Optional. Recurring weekly windows within which actions are restricted.
Implementations§
Source§impl TimeWindows
impl TimeWindows
pub fn new() -> Self
Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Sets the value of time_zone.
Sourcepub fn set_one_time_windows<T, V>(self, v: T) -> Self
pub fn set_one_time_windows<T, V>(self, v: T) -> Self
Sets the value of one_time_windows.
Sourcepub fn set_weekly_windows<T, V>(self, v: T) -> Self
pub fn set_weekly_windows<T, V>(self, v: T) -> Self
Sets the value of weekly_windows.
Trait Implementations§
Source§impl Clone for TimeWindows
impl Clone for TimeWindows
Source§fn clone(&self) -> TimeWindows
fn clone(&self) -> TimeWindows
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 TimeWindows
impl Debug for TimeWindows
Source§impl Default for TimeWindows
impl Default for TimeWindows
Source§fn default() -> TimeWindows
fn default() -> TimeWindows
Returns the “default value” for a type. Read more
Source§impl Message for TimeWindows
impl Message for TimeWindows
Source§impl PartialEq for TimeWindows
impl PartialEq for TimeWindows
impl StructuralPartialEq for TimeWindows
Auto Trait Implementations§
impl Freeze for TimeWindows
impl RefUnwindSafe for TimeWindows
impl Send for TimeWindows
impl Sync for TimeWindows
impl Unpin for TimeWindows
impl UnwindSafe for TimeWindows
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