pub struct History {
pub no_shows: Count,
pub late_cancels: LateCancelCount,
}Expand description
Represents the history concept as a typed grooming operational contract instead of a raw primitive.
Fields§
§no_shows: CountSource-derived no shows carried by this grooming contract.
late_cancels: LateCancelCountSource-derived late cancels carried by this grooming contract.
Implementations§
Source§impl History
impl History
Sourcepub const fn new(no_shows: Count, late_cancels: LateCancelCount) -> Self
pub const fn new(no_shows: Count, late_cancels: LateCancelCount) -> Self
Assembles this grooming value from already-validated domain parts.
Sourcepub const fn repeat_behavior_count(&self) -> u16
pub const fn repeat_behavior_count(&self) -> u16
Returns the repeat behavior count evidence recorded on this grooming contract.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for History
impl<'de> Deserialize<'de> for History
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
impl Copy for History
impl Eq for History
impl StructuralPartialEq for History
Auto Trait Implementations§
impl Freeze for History
impl RefUnwindSafe for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for History
impl UnwindSafe for History
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