Skip to main content

ContentCheck

Trait ContentCheck 

Source
pub trait ContentCheck:
    Send
    + Sync
    + 'static {
    // Required methods
    fn code(&self) -> &'static str;
    fn run(&self, page: &Page) -> Vec<Finding>;
}
Expand description

A registerable content check. Implementors are zero-field structs registered with register_content_check!.

Required Methods§

Source

fn code(&self) -> &'static str

Stable code prefix / identifier for the check.

Source

fn run(&self, page: &Page) -> Vec<Finding>

Run against the page; return zero or more findings.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§