#[doc(hidden)]pub trait ErrPartsSerde {
// Required method
fn __mx_fallback_parts(&self, prefix: &str) -> ErrParts;
}Expand description
Second stage, preferred arm: E: Serialize + Display under the serde
feature, classed via [serde_err_parts] with the defaults (kind tag,
the <crate>_error prefix the macro passes in, no shapes).
#[miniextendr(serde_error(..))] bypasses the probe with explicit options.
The trait exists without the feature so the generated use resolves; it
then has no impl and every type takes the ErrPartsDebug arm.
Required Methods§
fn __mx_fallback_parts(&self, prefix: &str) -> ErrParts
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".