#[non_exhaustive]pub struct MaintenanceWindow {
pub type: Option<MaintenanceWindowType>,
pub start_time_hour: Option<i32>,
pub start_time_minute: Option<i32>,
pub end_time_hour: Option<i32>,
pub end_time_minute: Option<i32>,
pub days_of_the_week: Option<Vec<DayOfWeek>>,
pub apply_time_of: Option<ApplyTimeOf>,
}
Expand description
Describes the maintenance window for a thin client device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: Option<MaintenanceWindowType>
An option to select the default or custom maintenance window.
start_time_hour: Option<i32>
The hour for the maintenance window start (00
-23
).
start_time_minute: Option<i32>
The minutes past the hour for the maintenance window start (00
-59
).
end_time_hour: Option<i32>
The hour for the maintenance window end (00
-23
).
end_time_minute: Option<i32>
The minutes for the maintenance window end (00
-59
).
days_of_the_week: Option<Vec<DayOfWeek>>
The days of the week during which the maintenance window is open.
apply_time_of: Option<ApplyTimeOf>
The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).
Implementations§
source§impl MaintenanceWindow
impl MaintenanceWindow
sourcepub fn type(&self) -> Option<&MaintenanceWindowType>
pub fn type(&self) -> Option<&MaintenanceWindowType>
An option to select the default or custom maintenance window.
sourcepub fn start_time_hour(&self) -> Option<i32>
pub fn start_time_hour(&self) -> Option<i32>
The hour for the maintenance window start (00
-23
).
sourcepub fn start_time_minute(&self) -> Option<i32>
pub fn start_time_minute(&self) -> Option<i32>
The minutes past the hour for the maintenance window start (00
-59
).
sourcepub fn end_time_hour(&self) -> Option<i32>
pub fn end_time_hour(&self) -> Option<i32>
The hour for the maintenance window end (00
-23
).
sourcepub fn end_time_minute(&self) -> Option<i32>
pub fn end_time_minute(&self) -> Option<i32>
The minutes for the maintenance window end (00
-59
).
sourcepub fn days_of_the_week(&self) -> &[DayOfWeek]
pub fn days_of_the_week(&self) -> &[DayOfWeek]
The days of the week during which the maintenance window is open.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .days_of_the_week.is_none()
.
sourcepub fn apply_time_of(&self) -> Option<&ApplyTimeOf>
pub fn apply_time_of(&self) -> Option<&ApplyTimeOf>
The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).
source§impl MaintenanceWindow
impl MaintenanceWindow
sourcepub fn builder() -> MaintenanceWindowBuilder
pub fn builder() -> MaintenanceWindowBuilder
Creates a new builder-style object to manufacture MaintenanceWindow
.
Trait Implementations§
source§impl Clone for MaintenanceWindow
impl Clone for MaintenanceWindow
source§fn clone(&self) -> MaintenanceWindow
fn clone(&self) -> MaintenanceWindow
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MaintenanceWindow
impl Debug for MaintenanceWindow
source§impl PartialEq for MaintenanceWindow
impl PartialEq for MaintenanceWindow
source§fn eq(&self, other: &MaintenanceWindow) -> bool
fn eq(&self, other: &MaintenanceWindow) -> bool
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more