#[non_exhaustive]pub struct SqlScheduledMaintenance {
pub start_time: Option<Timestamp>,
pub can_defer: bool,
pub can_reschedule: bool,
pub schedule_deadline_time: Option<Timestamp>,
/* private fields */
}
Expand description
Any scheduled maintenance for this instance.
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>
The start time of any upcoming scheduled maintenance for this instance.
can_defer: bool
👎Deprecated
§can_reschedule: bool
If the scheduled maintenance can be rescheduled.
schedule_deadline_time: Option<Timestamp>
Maintenance cannot be rescheduled to start beyond this deadline.
Implementations§
Source§impl SqlScheduledMaintenance
impl SqlScheduledMaintenance
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_can_defer<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_can_defer<T: Into<bool>>(self, v: T) -> Self
Sets the value of can_defer.
Sourcepub fn set_can_reschedule<T: Into<bool>>(self, v: T) -> Self
pub fn set_can_reschedule<T: Into<bool>>(self, v: T) -> Self
Sets the value of can_reschedule.
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 SqlScheduledMaintenance
impl Clone for SqlScheduledMaintenance
Source§fn clone(&self) -> SqlScheduledMaintenance
fn clone(&self) -> SqlScheduledMaintenance
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SqlScheduledMaintenance
impl Debug for SqlScheduledMaintenance
Source§impl Default for SqlScheduledMaintenance
impl Default for SqlScheduledMaintenance
Source§fn default() -> SqlScheduledMaintenance
fn default() -> SqlScheduledMaintenance
Returns the “default value” for a type. Read more
Source§impl Message for SqlScheduledMaintenance
impl Message for SqlScheduledMaintenance
Source§impl PartialEq for SqlScheduledMaintenance
impl PartialEq for SqlScheduledMaintenance
impl StructuralPartialEq for SqlScheduledMaintenance
Auto Trait Implementations§
impl Freeze for SqlScheduledMaintenance
impl RefUnwindSafe for SqlScheduledMaintenance
impl Send for SqlScheduledMaintenance
impl Sync for SqlScheduledMaintenance
impl Unpin for SqlScheduledMaintenance
impl UnwindSafe for SqlScheduledMaintenance
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