pub struct OutcomeMetadata {
pub algorithm: String,
pub evidence: Option<Value>,
pub judgments: Vec<JudgeDecision>,
/* private fields */
}Expand description
Identity and optional algorithm evidence attached to a successful routing outcome.
Fields§
§algorithm: StringStable name of the algorithm that produced the outcome.
evidence: Option<Value>Optional algorithm-defined JSON evidence.
Built-in algorithms include a source and relevant scores or decision details.
Not every algorithm or decision produces evidence.
judgments: Vec<JudgeDecision>Judge selections retained separately from the final routing reason.
Implementations§
Trait Implementations§
Source§impl Clone for OutcomeMetadata
impl Clone for OutcomeMetadata
Source§fn clone(&self) -> OutcomeMetadata
fn clone(&self) -> OutcomeMetadata
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 OutcomeMetadata
impl Debug for OutcomeMetadata
Source§impl<'de> Deserialize<'de> for OutcomeMetadata
impl<'de> Deserialize<'de> for OutcomeMetadata
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 OutcomeMetadata
Source§impl PartialEq for OutcomeMetadata
impl PartialEq for OutcomeMetadata
Source§impl Serialize for OutcomeMetadata
impl Serialize for OutcomeMetadata
impl StructuralPartialEq for OutcomeMetadata
Auto Trait Implementations§
impl Freeze for OutcomeMetadata
impl RefUnwindSafe for OutcomeMetadata
impl Send for OutcomeMetadata
impl Sync for OutcomeMetadata
impl Unpin for OutcomeMetadata
impl UnsafeUnpin for OutcomeMetadata
impl UnwindSafe for OutcomeMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.