pub struct Reservation {
pub id: Id,
pub location_id: LocationId,
pub customer_id: CustomerId,
pub pet_ids: Vec<PetId>,
pub service: ServiceKind,
pub status: Status,
pub starts_at: DateTime<Utc>,
pub ends_at: DateTime<Utc>,
pub deposit: Option<Deposit>,
pub source: Source,
pub requested_add_ons: Vec<AddOn>,
pub hard_stops: Vec<HardStop>,
}Expand description
Reservation record tying customer, pet, service, status, deposit, add-ons, and safety stops together.
Fields§
§id: IdId retained from source records for staff review, safety gates, and workflow joins.
location_id: LocationIdLocation id retained from source records for staff review, safety gates, and workflow joins.
customer_id: CustomerIdCustomer id retained from source records for staff review, safety gates, and workflow joins.
pet_ids: Vec<PetId>Pet ids retained from source records for staff review, safety gates, and workflow joins.
service: ServiceKindRequested service that drives scheduling and labor estimates.
status: StatusStatus retained from source records for staff review, safety gates, and workflow joins.
starts_at: DateTime<Utc>Starts at retained from source records for staff review, safety gates, and workflow joins.
ends_at: DateTime<Utc>Ends at retained from source records for staff review, safety gates, and workflow joins.
deposit: Option<Deposit>Deposit retained from source records for staff review, safety gates, and workflow joins.
source: SourceSource retained from source records for staff review, safety gates, and workflow joins.
requested_add_ons: Vec<AddOn>Requested add ons retained from source records for staff review, safety gates, and workflow joins.
hard_stops: Vec<HardStop>Hard stops retained from source records for staff review, safety gates, and workflow joins.
Implementations§
Source§impl Reservation
impl Reservation
Sourcepub fn builder() -> ReservationBuilder
pub fn builder() -> ReservationBuilder
Create an instance of Reservation using the builder syntax
Trait Implementations§
Source§impl Clone for Reservation
impl Clone for Reservation
Source§fn clone(&self) -> Reservation
fn clone(&self) -> Reservation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more