pub enum Decision {
Available {
reason: SuccessReason,
capacity_snapshot_id: CapacitySnapshotId,
},
Unavailable {
reason: DenialReason,
},
}Expand description
Availability result used to decide whether staff may review a draft offer.
Variants§
Available
Capacity evidence exists for a reviewable booking offer.
Fields
§
reason: SuccessReasonWhy the adapter considers the requested service/date capacity available.
§
capacity_snapshot_id: CapacitySnapshotIdSnapshot or hold identifier staff can inspect before relying on the result.
Capacity or policy evidence prevents a safe draft offer without review.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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