#[non_exhaustive]pub struct MaintenanceWindow {
pub maintenance_exclusions: HashMap<String, TimeWindow>,
pub policy: Option<Policy>,
}Expand description
MaintenanceWindow defines the maintenance window to be used for the cluster.
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.maintenance_exclusions: HashMap<String, TimeWindow>Exceptions to maintenance window. Non-emergency maintenance should not occur in these windows.
policy: Option<Policy>Implementations§
Source§impl MaintenanceWindow
impl MaintenanceWindow
Sourcepub fn set_maintenance_exclusions<T, K, V>(self, v: T) -> Self
pub fn set_maintenance_exclusions<T, K, V>(self, v: T) -> Self
Sets the value of maintenance_exclusions.
Sourcepub fn set_policy<T: Into<Option<Policy>>>(self, v: T) -> Self
pub fn set_policy<T: Into<Option<Policy>>>(self, v: T) -> Self
Sets the value of policy.
Sourcepub fn get_daily_maintenance_window(
&self,
) -> Option<&Box<DailyMaintenanceWindow>>
pub fn get_daily_maintenance_window( &self, ) -> Option<&Box<DailyMaintenanceWindow>>
The value of policy
if it holds a DailyMaintenanceWindow, None if the field is not set or
holds a different branch.
Sourcepub fn get_recurring_window(&self) -> Option<&Box<RecurringTimeWindow>>
pub fn get_recurring_window(&self) -> Option<&Box<RecurringTimeWindow>>
The value of policy
if it holds a RecurringWindow, None if the field is not set or
holds a different branch.
Sourcepub fn set_daily_maintenance_window<T: Into<Box<DailyMaintenanceWindow>>>(
self,
v: T,
) -> Self
pub fn set_daily_maintenance_window<T: Into<Box<DailyMaintenanceWindow>>>( self, v: T, ) -> Self
Sets the value of policy
to hold a DailyMaintenanceWindow.
Note that all the setters affecting policy are
mutually exclusive.
Sourcepub fn set_recurring_window<T: Into<Box<RecurringTimeWindow>>>(
self,
v: T,
) -> Self
pub fn set_recurring_window<T: Into<Box<RecurringTimeWindow>>>( self, v: T, ) -> Self
Sets the value of policy
to hold a RecurringWindow.
Note that all the setters affecting policy are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MaintenanceWindow
impl Clone for MaintenanceWindow
Source§fn clone(&self) -> MaintenanceWindow
fn clone(&self) -> MaintenanceWindow
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 MaintenanceWindow
impl Debug for MaintenanceWindow
Source§impl Default for MaintenanceWindow
impl Default for MaintenanceWindow
Source§fn default() -> MaintenanceWindow
fn default() -> MaintenanceWindow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaintenanceWindowwhere
MaintenanceWindow: Default,
impl<'de> Deserialize<'de> for MaintenanceWindowwhere
MaintenanceWindow: 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 MaintenanceWindow
impl Message for MaintenanceWindow
Source§impl PartialEq for MaintenanceWindow
impl PartialEq for MaintenanceWindow
Source§impl Serialize for MaintenanceWindow
impl Serialize for MaintenanceWindow
impl StructuralPartialEq for MaintenanceWindow
Auto Trait Implementations§
impl Freeze for MaintenanceWindow
impl RefUnwindSafe for MaintenanceWindow
impl Send for MaintenanceWindow
impl Sync for MaintenanceWindow
impl Unpin for MaintenanceWindow
impl UnwindSafe for MaintenanceWindow
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