pub struct DecisionResult {
pub question: String,
pub ranking: Vec<RankedOption>,
pub recommended: Option<String>,
pub no_admissible_option: bool,
pub reversibility_preferred: bool,
pub decisive: bool,
}Fields§
§question: String§ranking: Vec<RankedOption>§recommended: Option<String>Best admissible option, or None when every option is blocked.
no_admissible_option: bool§reversibility_preferred: boolTrue when the reversibility preference changed the recommendation.
decisive: boolTrue only when the recommended option’s lower bound is at least every other admissible option’s upper bound, so no value of the unknown criteria could change the winner.
Trait Implementations§
Source§impl Clone for DecisionResult
impl Clone for DecisionResult
Source§impl Debug for DecisionResult
impl Debug for DecisionResult
Source§impl<'de> Deserialize<'de> for DecisionResult
impl<'de> Deserialize<'de> for DecisionResult
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
Auto Trait Implementations§
impl Freeze for DecisionResult
impl RefUnwindSafe for DecisionResult
impl Send for DecisionResult
impl Sync for DecisionResult
impl Unpin for DecisionResult
impl UnsafeUnpin for DecisionResult
impl UnwindSafe for DecisionResult
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