#[non_exhaustive]pub struct MaintenanceWindow {
pub hour: Option<Int32Value>,
pub day: Option<Int32Value>,
pub update_track: SqlUpdateTrack,
pub kind: String,
/* private fields */
}
Expand description
Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.
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.hour: Option<Int32Value>
Hour of day - 0 to 23. Specify in the UTC time zone.
day: Option<Int32Value>
Day of week - MONDAY
, TUESDAY
, WEDNESDAY
, THURSDAY
, FRIDAY
,
SATURDAY
, or SUNDAY
. Specify in the UTC time zone.
Returned in output as an integer, 1 to 7, where 1
equals Monday.
update_track: SqlUpdateTrack
Maintenance timing settings: canary
, stable
, or week5
.
For more information, see About maintenance on Cloud SQL
instances.
kind: String
This is always sql#maintenanceWindow
.
Implementations§
Source§impl MaintenanceWindow
impl MaintenanceWindow
pub fn new() -> Self
Sourcepub fn set_hour<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_hour<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of hour.
Sourcepub fn set_or_clear_hour<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_hour<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of hour.
Sourcepub fn set_day<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
pub fn set_day<T>(self, v: T) -> Selfwhere
T: Into<Int32Value>,
Sets the value of day.
Sourcepub fn set_or_clear_day<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
pub fn set_or_clear_day<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int32Value>,
Sets or clears the value of day.
Sourcepub fn set_update_track<T: Into<SqlUpdateTrack>>(self, v: T) -> Self
pub fn set_update_track<T: Into<SqlUpdateTrack>>(self, v: T) -> Self
Sets the value of update_track.
Trait Implementations§
Source§impl Clone for MaintenanceWindow
impl Clone for MaintenanceWindow
Source§fn clone(&self) -> MaintenanceWindow
fn clone(&self) -> MaintenanceWindow
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 MaintenanceWindow
impl Debug for MaintenanceWindow
Source§impl Default for MaintenanceWindow
impl Default for MaintenanceWindow
Source§fn default() -> MaintenanceWindow
fn default() -> MaintenanceWindow
Returns the “default value” for a type. Read more
Source§impl Message for MaintenanceWindow
impl Message for MaintenanceWindow
Source§impl PartialEq for MaintenanceWindow
impl PartialEq for MaintenanceWindow
impl StructuralPartialEq for MaintenanceWindow
Auto Trait Implementations§
impl Freeze for MaintenanceWindow
impl RefUnwindSafe for MaintenanceWindow
impl Send for MaintenanceWindow
impl Sync for MaintenanceWindow
impl Unpin for MaintenanceWindow
impl UnwindSafe for MaintenanceWindow
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