#[non_exhaustive]pub struct MaintenanceSchedule {
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub schedule_deadline_time: Option<Timestamp>,
/* private fields */
}Expand description
Upcoming maintenance schedule.
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.start_time: Option<Timestamp>Output only. The start time of any upcoming scheduled maintenance for this instance.
end_time: Option<Timestamp>Output only. The end time of any upcoming scheduled maintenance for this instance.
schedule_deadline_time: Option<Timestamp>Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.
Implementations§
Source§impl MaintenanceSchedule
impl MaintenanceSchedule
pub fn new() -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sets the value of end_time.
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time.
Sourcepub fn set_schedule_deadline_time<T>(self, v: T) -> Self
pub fn set_schedule_deadline_time<T>(self, v: T) -> Self
Sets the value of schedule_deadline_time.
Sourcepub fn set_or_clear_schedule_deadline_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_schedule_deadline_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of schedule_deadline_time.
Trait Implementations§
Source§impl Clone for MaintenanceSchedule
impl Clone for MaintenanceSchedule
Source§fn clone(&self) -> MaintenanceSchedule
fn clone(&self) -> MaintenanceSchedule
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 MaintenanceSchedule
impl Debug for MaintenanceSchedule
Source§impl Default for MaintenanceSchedule
impl Default for MaintenanceSchedule
Source§fn default() -> MaintenanceSchedule
fn default() -> MaintenanceSchedule
Returns the “default value” for a type. Read more
Source§impl Message for MaintenanceSchedule
impl Message for MaintenanceSchedule
Source§impl PartialEq for MaintenanceSchedule
impl PartialEq for MaintenanceSchedule
impl StructuralPartialEq for MaintenanceSchedule
Auto Trait Implementations§
impl Freeze for MaintenanceSchedule
impl RefUnwindSafe for MaintenanceSchedule
impl Send for MaintenanceSchedule
impl Sync for MaintenanceSchedule
impl Unpin for MaintenanceSchedule
impl UnwindSafe for MaintenanceSchedule
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