pub enum SummaryError {
BackendNotConfigured,
ModelNotInAllowlist(String),
PromptTemplateMismatch(String),
CallFailed(String),
OutputValidationFailed(String),
}Expand description
Errors raised by any SummaryBackend implementation.
Each variant displays in a grep-friendly shape (the discriminator appears verbatim in the message) so operator scripts can match on a stable contract.
Variants§
BackendNotConfigured
No backend is wired (or the wired backend has no configured
upstream). This is the NoopSummaryBackend’s only return shape.
ModelNotInAllowlist(String)
The request’s model_name pin is not on the backend’s local
allowlist.
PromptTemplateMismatch(String)
The request’s prompt_template_blake3 pin does not match the
backend’s resolved template.
CallFailed(String)
The backend’s upstream call failed (transport, upstream non-2xx, timeout, etc.). The message is opaque to the trait but must be non-empty.
OutputValidationFailed(String)
The backend’s upstream returned a payload that failed local structural validation (empty claim, byte budget exceeded, …).
Trait Implementations§
Source§impl Clone for SummaryError
impl Clone for SummaryError
Source§fn clone(&self) -> SummaryError
fn clone(&self) -> SummaryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SummaryError
impl Debug for SummaryError
Source§impl<'de> Deserialize<'de> for SummaryError
impl<'de> Deserialize<'de> for SummaryError
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>,
Source§impl Display for SummaryError
impl Display for SummaryError
Source§impl Error for SummaryError
impl Error for SummaryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for SummaryError
impl PartialEq for SummaryError
Source§fn eq(&self, other: &SummaryError) -> bool
fn eq(&self, other: &SummaryError) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SummaryError
impl Serialize for SummaryError
impl Eq for SummaryError
impl StructuralPartialEq for SummaryError
Auto Trait Implementations§
impl Freeze for SummaryError
impl RefUnwindSafe for SummaryError
impl Send for SummaryError
impl Sync for SummaryError
impl Unpin for SummaryError
impl UnsafeUnpin for SummaryError
impl UnwindSafe for SummaryError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.