#[non_exhaustive]pub struct MaintenancePolicy {
pub window: Option<MaintenanceWindow>,
pub resource_version: String,
}Expand description
MaintenancePolicy defines the maintenance policy 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.window: Option<MaintenanceWindow>Specifies the maintenance window in which maintenance may be performed.
resource_version: StringA hash identifying the version of this policy, so that updates to fields of
the policy won’t accidentally undo intermediate changes (and so that users
of the API unaware of some fields won’t accidentally remove other fields).
Make a get() request to the cluster to get the current
resource version and include it with requests to set the policy.
Implementations§
Source§impl MaintenancePolicy
impl MaintenancePolicy
Sourcepub fn set_window<T: Into<Option<MaintenanceWindow>>>(self, v: T) -> Self
pub fn set_window<T: Into<Option<MaintenanceWindow>>>(self, v: T) -> Self
Sets the value of window.
Sourcepub fn set_resource_version<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_version<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_version.
Trait Implementations§
Source§impl Clone for MaintenancePolicy
impl Clone for MaintenancePolicy
Source§fn clone(&self) -> MaintenancePolicy
fn clone(&self) -> MaintenancePolicy
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 MaintenancePolicy
impl Debug for MaintenancePolicy
Source§impl Default for MaintenancePolicy
impl Default for MaintenancePolicy
Source§fn default() -> MaintenancePolicy
fn default() -> MaintenancePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaintenancePolicywhere
MaintenancePolicy: Default,
impl<'de> Deserialize<'de> for MaintenancePolicywhere
MaintenancePolicy: 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 MaintenancePolicy
impl Message for MaintenancePolicy
Source§impl PartialEq for MaintenancePolicy
impl PartialEq for MaintenancePolicy
Source§impl Serialize for MaintenancePolicy
impl Serialize for MaintenancePolicy
impl StructuralPartialEq for MaintenancePolicy
Auto Trait Implementations§
impl Freeze for MaintenancePolicy
impl RefUnwindSafe for MaintenancePolicy
impl Send for MaintenancePolicy
impl Sync for MaintenancePolicy
impl Unpin for MaintenancePolicy
impl UnwindSafe for MaintenancePolicy
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