pub trait Warning:
Sized
+ Debug
+ Display
+ Send
+ Sync {
// Required method
fn id(&self) -> SmartString;
}Expand description
Each mod defines warnings for the type that it’s trying to parse or lint from a json::Element.
The Warning in the mod should impl this trait to take part in the Warning system.
Required Methods§
Sourcefn id(&self) -> SmartString
fn id(&self) -> SmartString
Return the human readable identifier for the Warning.
This is used in the auto_test assertion system.
Changing these strings may require updating output_price__cdr.json files.
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.