#[non_exhaustive]pub struct BreakRequest {
pub earliest_start_time: Option<Timestamp>,
pub latest_start_time: Option<Timestamp>,
pub min_duration: Option<Duration>,
/* private fields */
}Expand description
The sequence of breaks (i.e. their number and order) that apply to each
vehicle must be known beforehand. The repeated BreakRequests define
that sequence, in the order in which they must occur. Their time windows
(earliest_start_time / latest_start_time) may overlap, but they must
be compatible with the order (this is checked).
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_start_time: Option<Timestamp>Required. Lower bound (inclusive) on the start of the break.
latest_start_time: Option<Timestamp>Required. Upper bound (inclusive) on the start of the break.
min_duration: Option<Duration>Required. Minimum duration of the break. Must be positive.
Implementations§
Source§impl BreakRequest
impl BreakRequest
pub fn new() -> Self
Sourcepub fn set_earliest_start_time<T>(self, v: T) -> Self
pub fn set_earliest_start_time<T>(self, v: T) -> Self
Sets the value of earliest_start_time.
Sourcepub fn set_or_clear_earliest_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_earliest_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of earliest_start_time.
Sourcepub fn set_latest_start_time<T>(self, v: T) -> Self
pub fn set_latest_start_time<T>(self, v: T) -> Self
Sets the value of latest_start_time.
Sourcepub fn set_or_clear_latest_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_latest_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of latest_start_time.
Sourcepub fn set_min_duration<T>(self, v: T) -> Self
pub fn set_min_duration<T>(self, v: T) -> Self
Sets the value of min_duration.
Sourcepub fn set_or_clear_min_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_min_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of min_duration.
Trait Implementations§
Source§impl Clone for BreakRequest
impl Clone for BreakRequest
Source§fn clone(&self) -> BreakRequest
fn clone(&self) -> BreakRequest
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 BreakRequest
impl Debug for BreakRequest
Source§impl Default for BreakRequest
impl Default for BreakRequest
Source§fn default() -> BreakRequest
fn default() -> BreakRequest
Returns the “default value” for a type. Read more
Source§impl Message for BreakRequest
impl Message for BreakRequest
Source§impl PartialEq for BreakRequest
impl PartialEq for BreakRequest
impl StructuralPartialEq for BreakRequest
Auto Trait Implementations§
impl Freeze for BreakRequest
impl RefUnwindSafe for BreakRequest
impl Send for BreakRequest
impl Sync for BreakRequest
impl Unpin for BreakRequest
impl UnwindSafe for BreakRequest
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