#[non_exhaustive]pub struct MaintenanceControl {
pub control: Control,
pub is_custom: bool,
pub documentation: String,
/* private fields */
}Expand description
The control of the maintenance.
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.control: ControlThe control of the resource maintenance.
is_custom: boolIndicates whether the control is available only in Service Producer API (not through Unified Maintenance).
documentation: StringLink to Service Producer documentation about maintenance control. Provided
only when isCustom is true.
Implementations§
Source§impl MaintenanceControl
impl MaintenanceControl
pub fn new() -> Self
Sourcepub fn set_control<T: Into<Control>>(self, v: T) -> Self
pub fn set_control<T: Into<Control>>(self, v: T) -> Self
Sets the value of control.
§Example
ⓘ
use google_cloud_maintenance_api_v1::model::maintenance_control::Control;
let x0 = MaintenanceControl::new().set_control(Control::Apply);
let x1 = MaintenanceControl::new().set_control(Control::ManagePolicy);
let x2 = MaintenanceControl::new().set_control(Control::Reschedule);Sourcepub fn set_is_custom<T: Into<bool>>(self, v: T) -> Self
pub fn set_is_custom<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_documentation<T: Into<String>>(self, v: T) -> Self
pub fn set_documentation<T: Into<String>>(self, v: T) -> Self
Sets the value of documentation.
§Example
ⓘ
let x = MaintenanceControl::new().set_documentation("example");Trait Implementations§
Source§impl Clone for MaintenanceControl
impl Clone for MaintenanceControl
Source§fn clone(&self) -> MaintenanceControl
fn clone(&self) -> MaintenanceControl
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 MaintenanceControl
impl Debug for MaintenanceControl
Source§impl Default for MaintenanceControl
impl Default for MaintenanceControl
Source§fn default() -> MaintenanceControl
fn default() -> MaintenanceControl
Returns the “default value” for a type. Read more
Source§impl Message for MaintenanceControl
impl Message for MaintenanceControl
Source§impl PartialEq for MaintenanceControl
impl PartialEq for MaintenanceControl
impl StructuralPartialEq for MaintenanceControl
Auto Trait Implementations§
impl Freeze for MaintenanceControl
impl RefUnwindSafe for MaintenanceControl
impl Send for MaintenanceControl
impl Sync for MaintenanceControl
impl Unpin for MaintenanceControl
impl UnwindSafe for MaintenanceControl
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