pub struct Fact { /* private fields */ }Expand description
Projected stay fact used by analytics, manager briefs, and labor planning.
Implementations§
Source§impl Fact
impl Fact
Sourcepub fn project_from_source_reservation(
id: Id,
source_reservation: &Snapshot,
projection_version: ProjectionVersion,
) -> Result<Self, Vec<Issue>>
pub fn project_from_source_reservation( id: Id, source_reservation: &Snapshot, projection_version: ProjectionVersion, ) -> Result<Self, Vec<Issue>>
Projects a validated stay fact from a source reservation snapshot.
Blocking data-quality issues return the full issue set instead of producing a fact; nonblocking issues stay attached as evidence for reviewable read models.
Sourcepub const fn id(&self) -> &Id
pub const fn id(&self) -> &Id
Returns the analytics fact id used to join reports without reusing provider record ids.
Sourcepub const fn source_system(&self) -> System
pub const fn source_system(&self) -> System
Returns the provider system that supplied the stay evidence.
Sourcepub const fn provenance(&self) -> &Provenance
pub const fn provenance(&self) -> &Provenance
Returns the source provenance managers can inspect before trusting a brief or labor report.
Sourcepub const fn reservation_record_id(&self) -> &Id
pub const fn reservation_record_id(&self) -> &Id
Returns the source reservation record that explains the projected stay.
Sourcepub const fn customer_record_id(&self) -> &Id
pub const fn customer_record_id(&self) -> &Id
Returns the source customer record needed for reviewed communication or cleanup workflows.
Sourcepub const fn pet_record_id(&self) -> &Id
pub const fn pet_record_id(&self) -> &Id
Returns the source pet record needed for care, eligibility, and safety review.
Sourcepub const fn location_record_id(&self) -> &Id
pub const fn location_record_id(&self) -> &Id
Returns the source location record used to keep demand tied to the correct resort.
Sourcepub const fn service_type_record_id(&self) -> &Id
pub const fn service_type_record_id(&self) -> &Id
Returns the source service-type record used before demand is grouped by service line.
Sourcepub const fn projection_version(&self) -> &ProjectionVersion
pub const fn projection_version(&self) -> &ProjectionVersion
Returns the projection version so dashboards compare facts produced by the same logic.
Sourcepub const fn data_quality_status(&self) -> DataQualityStatus
pub const fn data_quality_status(&self) -> DataQualityStatus
Returns whether the fact is clean or still needs manager-visible data-quality review.
Sourcepub fn data_quality_issues(&self) -> &[Issue]
pub fn data_quality_issues(&self) -> &[Issue]
Nonblocking source data-quality issues preserved on the projected stay fact.
Workflow-blocking issues are returned as projection errors instead of producing a fact.