pub struct JudgeDecision {
pub target: Option<ModelId>,
pub category: Option<String>,
pub evidence: Option<Value>,
}Expand description
A judge’s selection after applying its routing policy.
Fields§
§target: Option<ModelId>Selected target, or none when the judge abstains.
category: Option<String>Category of the selected target, when known.
evidence: Option<Value>Available scores, thresholds or failure reasons.
Trait Implementations§
Source§impl Clone for JudgeDecision
impl Clone for JudgeDecision
Source§fn clone(&self) -> JudgeDecision
fn clone(&self) -> JudgeDecision
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 JudgeDecision
impl Debug for JudgeDecision
Source§impl<'de> Deserialize<'de> for JudgeDecision
impl<'de> Deserialize<'de> for JudgeDecision
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 JudgeDecision
Source§impl PartialEq for JudgeDecision
impl PartialEq for JudgeDecision
Source§impl Serialize for JudgeDecision
impl Serialize for JudgeDecision
impl StructuralPartialEq for JudgeDecision
Auto Trait Implementations§
impl Freeze for JudgeDecision
impl RefUnwindSafe for JudgeDecision
impl Send for JudgeDecision
impl Sync for JudgeDecision
impl Unpin for JudgeDecision
impl UnsafeUnpin for JudgeDecision
impl UnwindSafe for JudgeDecision
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.