#[non_exhaustive]pub struct FutureReservationTimeWindow {
pub duration: Option<Duration>,
pub end_time: Option<String>,
pub start_time: Option<String>,
/* private fields */
}Available on crate feature
future-reservations only.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.duration: Option<Duration>§end_time: Option<String>§start_time: Option<String>Start time of the Future Reservation. The start_time is an RFC3339 string.
Implementations§
Source§impl FutureReservationTimeWindow
impl FutureReservationTimeWindow
pub fn new() -> Self
Sourcepub fn set_duration<T>(self, v: T) -> Self
pub fn set_duration<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_duration<T>(self, v: Option<T>) -> Self
Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
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
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.
§Example
ⓘ
let x = FutureReservationTimeWindow::new().set_start_time("example");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.
§Example
ⓘ
let x = FutureReservationTimeWindow::new().set_or_clear_start_time(Some("example"));
let x = FutureReservationTimeWindow::new().set_or_clear_start_time(None::<String>);Trait Implementations§
Source§impl Clone for FutureReservationTimeWindow
impl Clone for FutureReservationTimeWindow
Source§fn clone(&self) -> FutureReservationTimeWindow
fn clone(&self) -> FutureReservationTimeWindow
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 FutureReservationTimeWindow
impl Debug for FutureReservationTimeWindow
Source§impl Default for FutureReservationTimeWindow
impl Default for FutureReservationTimeWindow
Source§fn default() -> FutureReservationTimeWindow
fn default() -> FutureReservationTimeWindow
Returns the “default value” for a type. Read more
impl StructuralPartialEq for FutureReservationTimeWindow
Auto Trait Implementations§
impl Freeze for FutureReservationTimeWindow
impl RefUnwindSafe for FutureReservationTimeWindow
impl Send for FutureReservationTimeWindow
impl Sync for FutureReservationTimeWindow
impl Unpin for FutureReservationTimeWindow
impl UnwindSafe for FutureReservationTimeWindow
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