pub enum ApprovalState {
Draft,
ReviewRequired {
gate: ReviewGate,
},
ApprovedByGroomer {
groomer_id: StaffId,
},
Rejected {
gate: ReviewGate,
},
}Expand description
Approval state controlling whether grooming history can support future estimates or rebooking.
Variants§
Draft
Staff can see the draft grooming state during grooming scheduling, estimate, history, rebooking, reminder, or review work.
ReviewRequired
Review gate that must clear before this grooming decision can trigger a live schedule, deposit, or message action.
Fields
§
gate: ReviewGateApproval gate staff must clear before acting on this variant.
ApprovedByGroomer
Groomer who approved the history entry for later estimate, care, or rebooking review.
Rejected
Review gate that must clear before this grooming decision can trigger a live schedule, deposit, or message action.
Fields
§
gate: ReviewGateApproval gate staff must clear before acting on this variant.
Implementations§
Source§impl ApprovalState
impl ApprovalState
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 ApprovalState
impl Clone for ApprovalState
Source§fn clone(&self) -> ApprovalState
fn clone(&self) -> ApprovalState
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 ApprovalState
impl Debug for ApprovalState
Source§impl<'de> Deserialize<'de> for ApprovalState
impl<'de> Deserialize<'de> for ApprovalState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ApprovalState
impl PartialEq for ApprovalState
Source§impl Serialize for ApprovalState
impl Serialize for ApprovalState
impl Eq for ApprovalState
impl StructuralPartialEq for ApprovalState
Auto Trait Implementations§
impl Freeze for ApprovalState
impl RefUnwindSafe for ApprovalState
impl Send for ApprovalState
impl Sync for ApprovalState
impl Unpin for ApprovalState
impl UnsafeUnpin for ApprovalState
impl UnwindSafe for ApprovalState
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