pub enum Decision {
Available {
accommodation: Kind,
},
Waitlist {
reason: WaitlistReason,
},
Deny {
reason: DenialReason,
review_gate: ReviewGate,
},
}Expand description
Capacity outcome an agent may present to staff when handling a boarding request.
Variants§
Available
A compatible accommodation segment has at least one available room.
Waitlist
Compatible accommodation exists but is currently full, so staff should route to waitlist.
Fields
§
reason: WaitlistReasonSource-grounded reason for the waitlist or denial outcome.
Deny
The request cannot be confirmed from the supplied source evidence and requires a review gate.
Fields
§
reason: DenialReasonSource-grounded reason for the waitlist or denial outcome.
§
review_gate: ReviewGateHuman approval gate required before overriding the denied capacity decision.
Implementations§
Source§impl Decision
impl Decision
Sourcepub fn required_review_gate(&self) -> Option<ReviewGate>
pub fn required_review_gate(&self) -> Option<ReviewGate>
Returns the human review gate required before staff override a denied capacity decision.
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