pub struct ExplainedDecision {
pub allowed: bool,
pub primary_reason: String,
pub factors: Vec<DecisionFactor>,
pub confidence: f32,
}Expand description
The explained decision
Fields§
§allowed: boolAllowed or blocked
primary_reason: StringPrimary reason
factors: Vec<DecisionFactor>Contributing factors
confidence: f32Overall confidence
Trait Implementations§
Source§impl Clone for ExplainedDecision
impl Clone for ExplainedDecision
Source§fn clone(&self) -> ExplainedDecision
fn clone(&self) -> ExplainedDecision
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 ExplainedDecision
impl Debug for ExplainedDecision
Source§impl<'de> Deserialize<'de> for ExplainedDecision
impl<'de> Deserialize<'de> for ExplainedDecision
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 ExplainedDecision
impl RefUnwindSafe for ExplainedDecision
impl Send for ExplainedDecision
impl Sync for ExplainedDecision
impl Unpin for ExplainedDecision
impl UnwindSafe for ExplainedDecision
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