#[non_exhaustive]pub struct Warning {
pub code: WarningCode,
pub knob: &'static str,
pub message: &'static str,
pub remediation_ref: &'static str,
}Expand description
One structural diagnostic attached to a retrieve response.
code is the closed-enum tag; message and remediation_ref are
&'static str pointers into the compile-time catalog. Serde emits
them as plain strings on the wire.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: WarningCodeClosed-enum tag. Stable across versions; agents match on this.
knob: &'static strAgent-facing knob name this warning is about. Duplicates
code.knob() on the wire for zero-lookup routing.
message: &'static strCompile-time-constant human-readable message. Never contains user input.
remediation_ref: &'static strRelative repo path of the remediation markdown.
Implementations§
Trait Implementations§
Source§impl Deserialize<'static> for Warning
impl Deserialize<'static> for Warning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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