#[non_exhaustive]pub struct WeeklyMaintenanceWindow {
pub day: DayOfWeek,
pub start_time: Option<TimeOfDay>,
pub duration: Option<Duration>,
/* private fields */
}Expand description
Time window in which disruptive maintenance updates occur. Non-disruptive updates can occur inside or outside this window.
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. The day of week that maintenance updates occur.
start_time: Option<TimeOfDay>Required. Start time of the window in UTC time.
duration: Option<Duration>Output only. Duration of the maintenance window. The current window is fixed at 1 hour.
Implementations§
Source§impl WeeklyMaintenanceWindow
impl WeeklyMaintenanceWindow
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_duration<T>(self, v: T) -> Self
pub fn set_duration<T>(self, v: T) -> Self
Sets the value of duration.
Trait Implementations§
Source§impl Clone for WeeklyMaintenanceWindow
impl Clone for WeeklyMaintenanceWindow
Source§fn clone(&self) -> WeeklyMaintenanceWindow
fn clone(&self) -> WeeklyMaintenanceWindow
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 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 Message for WeeklyMaintenanceWindow
impl Message for WeeklyMaintenanceWindow
Source§impl PartialEq for WeeklyMaintenanceWindow
impl PartialEq 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