#[non_exhaustive]pub struct WeeklyMaintenanceWindow {
pub day: DayOfWeek,
pub start_time: Option<TimeOfDay>,
pub duration: Option<Duration>,
/* private fields */
}Expand description
Time window specified for weekly operations.
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.day: DayOfWeekRequired. Allows to define schedule that runs specified day of the week.
start_time: Option<TimeOfDay>Required. Start time of the window in UTC.
duration: Option<Duration>Required. Duration of the time window.
Implementations§
Source§impl WeeklyMaintenanceWindow
impl WeeklyMaintenanceWindow
pub fn new() -> Self
Sourcepub fn set_start_time<T: Into<Option<TimeOfDay>>>(self, v: T) -> Self
pub fn set_start_time<T: Into<Option<TimeOfDay>>>(self, v: T) -> Self
Sets the value of start_time.
Trait Implementations§
Source§impl Clone for WeeklyMaintenanceWindow
impl Clone for WeeklyMaintenanceWindow
Source§fn clone(&self) -> WeeklyMaintenanceWindow
fn clone(&self) -> WeeklyMaintenanceWindow
Returns a copy 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 WeeklyMaintenanceWindow
impl Debug for WeeklyMaintenanceWindow
Source§impl Default for WeeklyMaintenanceWindow
impl Default for WeeklyMaintenanceWindow
Source§fn default() -> WeeklyMaintenanceWindow
fn default() -> WeeklyMaintenanceWindow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeeklyMaintenanceWindowwhere
WeeklyMaintenanceWindow: Default,
impl<'de> Deserialize<'de> for WeeklyMaintenanceWindowwhere
WeeklyMaintenanceWindow: Default,
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 Message for WeeklyMaintenanceWindow
impl Message for WeeklyMaintenanceWindow
Source§impl PartialEq for WeeklyMaintenanceWindow
impl PartialEq for WeeklyMaintenanceWindow
Source§impl Serialize for WeeklyMaintenanceWindow
impl Serialize for WeeklyMaintenanceWindow
impl StructuralPartialEq for WeeklyMaintenanceWindow
Auto Trait Implementations§
impl Freeze for WeeklyMaintenanceWindow
impl RefUnwindSafe for WeeklyMaintenanceWindow
impl Send for WeeklyMaintenanceWindow
impl Sync for WeeklyMaintenanceWindow
impl Unpin for WeeklyMaintenanceWindow
impl UnwindSafe for WeeklyMaintenanceWindow
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