#[non_exhaustive]pub struct MaintenanceExclusionOptions {
pub scope: Scope,
pub end_time_behavior: EndTimeBehavior,
/* private fields */
}Expand description
Represents the Maintenance exclusion option.
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.scope: ScopeScope specifies the upgrade scope which upgrades are blocked by the exclusion.
end_time_behavior: EndTimeBehaviorEndTimeBehavior specifies the behavior of the exclusion end time.
Implementations§
Source§impl MaintenanceExclusionOptions
impl MaintenanceExclusionOptions
pub fn new() -> Self
Sourcepub fn set_end_time_behavior<T: Into<EndTimeBehavior>>(self, v: T) -> Self
pub fn set_end_time_behavior<T: Into<EndTimeBehavior>>(self, v: T) -> Self
Sets the value of end_time_behavior.
Trait Implementations§
Source§impl Clone for MaintenanceExclusionOptions
impl Clone for MaintenanceExclusionOptions
Source§fn clone(&self) -> MaintenanceExclusionOptions
fn clone(&self) -> MaintenanceExclusionOptions
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 MaintenanceExclusionOptions
impl Debug for MaintenanceExclusionOptions
Source§impl Default for MaintenanceExclusionOptions
impl Default for MaintenanceExclusionOptions
Source§fn default() -> MaintenanceExclusionOptions
fn default() -> MaintenanceExclusionOptions
Returns the “default value” for a type. Read more
impl StructuralPartialEq for MaintenanceExclusionOptions
Auto Trait Implementations§
impl Freeze for MaintenanceExclusionOptions
impl RefUnwindSafe for MaintenanceExclusionOptions
impl Send for MaintenanceExclusionOptions
impl Sync for MaintenanceExclusionOptions
impl Unpin for MaintenanceExclusionOptions
impl UnwindSafe for MaintenanceExclusionOptions
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