Struct aws_sdk_ec2::types::SlotDateTimeRangeRequest
source · #[non_exhaustive]pub struct SlotDateTimeRangeRequest {
pub earliest_time: Option<DateTime>,
pub latest_time: Option<DateTime>,
}
Expand description
Describes the time period for a Scheduled Instance to start its first schedule. The time period must span less than one day.
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.earliest_time: Option<DateTime>
The earliest date and time, in UTC, for the Scheduled Instance to start.
latest_time: Option<DateTime>
The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.
Implementations§
source§impl SlotDateTimeRangeRequest
impl SlotDateTimeRangeRequest
sourcepub fn earliest_time(&self) -> Option<&DateTime>
pub fn earliest_time(&self) -> Option<&DateTime>
The earliest date and time, in UTC, for the Scheduled Instance to start.
sourcepub fn latest_time(&self) -> Option<&DateTime>
pub fn latest_time(&self) -> Option<&DateTime>
The latest date and time, in UTC, for the Scheduled Instance to start. This value must be later than or equal to the earliest date and at most three months in the future.
source§impl SlotDateTimeRangeRequest
impl SlotDateTimeRangeRequest
sourcepub fn builder() -> SlotDateTimeRangeRequestBuilder
pub fn builder() -> SlotDateTimeRangeRequestBuilder
Creates a new builder-style object to manufacture SlotDateTimeRangeRequest
.
Trait Implementations§
source§impl Clone for SlotDateTimeRangeRequest
impl Clone for SlotDateTimeRangeRequest
source§fn clone(&self) -> SlotDateTimeRangeRequest
fn clone(&self) -> SlotDateTimeRangeRequest
Returns a copy 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 SlotDateTimeRangeRequest
impl Debug for SlotDateTimeRangeRequest
source§impl PartialEq<SlotDateTimeRangeRequest> for SlotDateTimeRangeRequest
impl PartialEq<SlotDateTimeRangeRequest> for SlotDateTimeRangeRequest
source§fn eq(&self, other: &SlotDateTimeRangeRequest) -> bool
fn eq(&self, other: &SlotDateTimeRangeRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlotDateTimeRangeRequest
Auto Trait Implementations§
impl RefUnwindSafe for SlotDateTimeRangeRequest
impl Send for SlotDateTimeRangeRequest
impl Sync for SlotDateTimeRangeRequest
impl Unpin for SlotDateTimeRangeRequest
impl UnwindSafe for SlotDateTimeRangeRequest
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