Skip to main content

Validate

Trait Validate 

Source
pub trait Validate {
    // Required method
    fn validate(&self) -> Result<(), ValidationError>;
}
Expand description

Messages that can be checked beyond their parsed shape.

Required Methods§

Source

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".

Implementors§