pub trait DcForgivingDefault: Sized {
// Required method
fn dc_forgiving_default() -> Self;
}Expand description
Fallback value provider used when projecting structs or fields under a
non-Error DcProjectionPolicy (forgiving()).
Required Methods§
Sourcefn dc_forgiving_default() -> Self
fn dc_forgiving_default() -> Self
Produces a placeholder value when a required field or element is missing or malformed in forgiving mode.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.