pub enum ServedFrom {
Attempt,
BestAttempt,
Error,
Cache,
}Expand description
Where the served response came from.
Variants§
Attempt
A passing attempt (the normal path).
BestAttempt
The best attempt seen, served because budget/ladder was exhausted without a pass.
Error
No output served; a structured error was returned.
Cache
Replayed from the verified cache: this exact prompt was answered before, that answer passed its gate, and the receipt names the decision that proved it.
Distinct from ServedFrom::Attempt because no model was called — a receipt that reported
this as a normal attempt would claim a verification that did not run today, and inflate
every pass-rate computed over receipts. cache_source carries the trace it came from, so
the proof is one lookup away rather than asserted.
Trait Implementations§
Source§impl Clone for ServedFrom
impl Clone for ServedFrom
impl Copy for ServedFrom
Source§impl Debug for ServedFrom
impl Debug for ServedFrom
Source§impl<'de> Deserialize<'de> for ServedFrom
impl<'de> Deserialize<'de> for ServedFrom
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 ServedFrom
Source§impl PartialEq for ServedFrom
impl PartialEq for ServedFrom
Source§impl Serialize for ServedFrom
impl Serialize for ServedFrom
impl StructuralPartialEq for ServedFrom
Auto Trait Implementations§
impl Freeze for ServedFrom
impl RefUnwindSafe for ServedFrom
impl Send for ServedFrom
impl Sync for ServedFrom
impl Unpin for ServedFrom
impl UnsafeUnpin for ServedFrom
impl UnwindSafe for ServedFrom
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