pub enum StrictError {
UnknownField {
path: String,
key: String,
},
LegacyLineage {
key: String,
},
UnregisteredExtension {
key: String,
},
UnknownOpKind,
Parse(String),
}Expand description
Why strict mode refused. The message is the diagnosis; the path is where to look.
Variants§
UnknownField
A key the level doesn’t know (path names it).
LegacyLineage
One of the LLM lineage keys at meta’s top level — moved to
meta["ext-provenance"] (spec/extensions/provenance.md).
UnregisteredExtension
An ext-* namespace the registry doesn’t list.
UnknownOpKind
A log op recognized by no rule — in strict mode, a refusal.
Parse(String)
The underlying JSON wouldn’t parse at all.
Trait Implementations§
Source§impl Clone for StrictError
impl Clone for StrictError
Source§impl Debug for StrictError
impl Debug for StrictError
Source§impl Display for StrictError
impl Display for StrictError
impl Eq for StrictError
Source§impl Error for StrictError
impl Error for StrictError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for StrictError
impl PartialEq for StrictError
impl StructuralPartialEq for StrictError
Auto Trait Implementations§
impl Forget for StrictError
impl Freeze for StrictError
impl RefUnwindSafe for StrictError
impl Send for StrictError
impl Sync for StrictError
impl Unpin for StrictError
impl UnsafeUnpin for StrictError
impl UnwindSafe for StrictError
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