pub struct EstimationPolicy;Expand description
Policy object that chooses a grooming duration from pet history first, then contracted breed/coat defaults.
Implementations§
Source§impl EstimationPolicy
impl EstimationPolicy
Sourcepub fn estimate(
&self,
request: EstimationRequest,
history: &[ServiceHistoryEntry],
contract: &Contract,
) -> DurationEstimate
pub fn estimate( &self, request: EstimationRequest, history: &[ServiceHistoryEntry], contract: &Contract, ) -> DurationEstimate
Estimates appointment minutes from source history or contract defaults and records any required review gate.
Trait Implementations§
Source§impl Clone for EstimationPolicy
impl Clone for EstimationPolicy
Source§fn clone(&self) -> EstimationPolicy
fn clone(&self) -> EstimationPolicy
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 EstimationPolicy
impl Debug for EstimationPolicy
Source§impl Default for EstimationPolicy
impl Default for EstimationPolicy
Source§fn default() -> EstimationPolicy
fn default() -> EstimationPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EstimationPolicy
impl RefUnwindSafe for EstimationPolicy
impl Send for EstimationPolicy
impl Sync for EstimationPolicy
impl Unpin for EstimationPolicy
impl UnsafeUnpin for EstimationPolicy
impl UnwindSafe for EstimationPolicy
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