pub struct ServiceHistoryEntry {
pub pet_id: PetId,
pub location_id: LocationId,
pub service: Service,
pub completed_on: NaiveDate,
pub outcome: ServiceOutcome,
pub approval: ApprovalState,
/* private fields */
}Expand description
Represents the service history entry concept as a typed grooming operational contract instead of a raw primitive.
Fields§
§pet_id: PetIdPet receiving the grooming or care service.
location_id: LocationIdSource-derived location id carried by this grooming contract.
service: ServiceRequested service that drives scheduling and labor estimates.
completed_on: NaiveDateSource-derived completed on carried by this grooming contract.
outcome: ServiceOutcomeSource-derived outcome carried by this grooming contract.
approval: ApprovalStateSource-derived approval carried by this grooming contract.
Implementations§
Source§impl ServiceHistoryEntry
impl ServiceHistoryEntry
Sourcepub fn builder() -> ServiceHistoryEntryBuilder
pub fn builder() -> ServiceHistoryEntryBuilder
Create an instance of ServiceHistoryEntry using the builder syntax
Source§impl ServiceHistoryEntry
impl ServiceHistoryEntry
Sourcepub fn style_notes(&self) -> &[StyleNote]
pub fn style_notes(&self) -> &[StyleNote]
Returns the style notes evidence recorded on this grooming contract.
Sourcepub fn care_refs(&self) -> &[CareReference]
pub fn care_refs(&self) -> &[CareReference]
Returns the care refs evidence recorded on this grooming contract.
Sourcepub const fn duration(&self) -> Option<AppointmentMinutes>
pub const fn duration(&self) -> Option<AppointmentMinutes>
Returns the duration evidence recorded on this grooming contract.
Sourcepub const fn requires_review(&self) -> bool
pub const fn requires_review(&self) -> bool
Reports whether care-team review is needed before proceeding.
Trait Implementations§
Source§impl Clone for ServiceHistoryEntry
impl Clone for ServiceHistoryEntry
Source§fn clone(&self) -> ServiceHistoryEntry
fn clone(&self) -> ServiceHistoryEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more