pub trait Validate {
// Required method
fn validate(&self) -> Result<(), ValidationError>;
}Expand description
Messages that can be checked beyond their parsed shape.
Required Methods§
Sourcefn validate(&self) -> Result<(), ValidationError>
fn validate(&self) -> Result<(), ValidationError>
Check the message. Called by the daemon before anything is rendered.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".