#[non_exhaustive]pub struct Maintenance {
pub maintenance_name: String,
pub title: String,
pub description: String,
pub category: MaintenanceCategory,
/* private fields */
}Expand description
Maintenance is the maintenance details of a resource’s 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.maintenance_name: StringMaintenance is the name of the corresponding maintenance resource
following the standard naming scheme: "{maintenance-id}"
title: StringOutput only. The title of the maintenance.
description: StringOutput only. The description of the maintenance.
category: MaintenanceCategoryOutput only. The category of the maintenance.
Implementations§
Source§impl Maintenance
impl Maintenance
pub fn new() -> Self
Sourcepub fn set_maintenance_name<T: Into<String>>(self, v: T) -> Self
pub fn set_maintenance_name<T: Into<String>>(self, v: T) -> Self
Sets the value of maintenance_name.
§Example
ⓘ
let x = Maintenance::new().set_maintenance_name("example");Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_category<T: Into<MaintenanceCategory>>(self, v: T) -> Self
pub fn set_category<T: Into<MaintenanceCategory>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for Maintenance
impl Clone for Maintenance
Source§fn clone(&self) -> Maintenance
fn clone(&self) -> Maintenance
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 Maintenance
impl Debug for Maintenance
Source§impl Default for Maintenance
impl Default for Maintenance
Source§fn default() -> Maintenance
fn default() -> Maintenance
Returns the “default value” for a type. Read more
Source§impl Message for Maintenance
impl Message for Maintenance
Source§impl PartialEq for Maintenance
impl PartialEq for Maintenance
impl StructuralPartialEq for Maintenance
Auto Trait Implementations§
impl Freeze for Maintenance
impl RefUnwindSafe for Maintenance
impl Send for Maintenance
impl Sync for Maintenance
impl Unpin for Maintenance
impl UnwindSafe for Maintenance
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