pub enum DecisionOutcome {
Selected {
option_id: String,
},
Deferred {
reason: String,
},
Pending {
reason: String,
},
PendingRandom {
candidates: Vec<DecisionOptionWeight>,
},
}Variants§
Selected
Deferred
Pending
PendingRandom
A non-authoritative outcome: the policy found near-equivalent
candidates and asks the boundary to choose among only these options
with ResolveDecisionRandomly. It is never persisted as a resolution.
Fields
§
candidates: Vec<DecisionOptionWeight>Implementations§
Source§impl DecisionOutcome
impl DecisionOutcome
Sourcepub const fn is_pending(&self) -> bool
pub const fn is_pending(&self) -> bool
Returns whether the outcome waits for later input instead of resolving or deferring the ticket.
Trait Implementations§
Source§impl Clone for DecisionOutcome
impl Clone for DecisionOutcome
Source§fn clone(&self) -> DecisionOutcome
fn clone(&self) -> DecisionOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DecisionOutcome
impl Debug for DecisionOutcome
Source§impl<'de> Deserialize<'de> for DecisionOutcome
impl<'de> Deserialize<'de> for DecisionOutcome
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DecisionOutcome
Source§impl PartialEq for DecisionOutcome
impl PartialEq for DecisionOutcome
Source§impl Serialize for DecisionOutcome
impl Serialize for DecisionOutcome
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DecisionOutcome
Auto Trait Implementations§
impl Freeze for DecisionOutcome
impl RefUnwindSafe for DecisionOutcome
impl Send for DecisionOutcome
impl Sync for DecisionOutcome
impl Unpin for DecisionOutcome
impl UnsafeUnpin for DecisionOutcome
impl UnwindSafe for DecisionOutcome
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