pub struct TimeWindowViolation {
pub early_ms: i64,
pub late_ms: i64,
pub severity: ViolationSeverity,
pub penalty: f64,
}Expand description
Time constraint violation details.
Fields§
§early_ms: i64Amount of time too early (ms).
late_ms: i64Amount of time too late (ms).
severity: ViolationSeveritySeverity level.
penalty: f64Calculated penalty value.
Implementations§
Trait Implementations§
Source§impl Clone for TimeWindowViolation
impl Clone for TimeWindowViolation
Source§fn clone(&self) -> TimeWindowViolation
fn clone(&self) -> TimeWindowViolation
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 TimeWindowViolation
impl Debug for TimeWindowViolation
Source§impl<'de> Deserialize<'de> for TimeWindowViolation
impl<'de> Deserialize<'de> for TimeWindowViolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimeWindowViolation
impl RefUnwindSafe for TimeWindowViolation
impl Send for TimeWindowViolation
impl Sync for TimeWindowViolation
impl Unpin for TimeWindowViolation
impl UnsafeUnpin for TimeWindowViolation
impl UnwindSafe for TimeWindowViolation
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