pub struct Policy;Expand description
Represents the policy concept as a typed grooming operational contract instead of a raw primitive.
Implementations§
Source§impl Policy
impl Policy
Sourcepub fn recommend_from_history(
&self,
pet_id: PetId,
history: &[ServiceHistoryEntry],
cadence: Cadence,
today: NaiveDate,
) -> Recommendation
pub fn recommend_from_history( &self, pet_id: PetId, history: &[ServiceHistoryEntry], cadence: Cadence, today: NaiveDate, ) -> Recommendation
Returns the recommend from history evidence recorded on this grooming contract.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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