Skip to main content

Check

Trait Check 

Source
pub trait Check: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn name(&self) -> &str;
    fn category(&self) -> CheckCategory;
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ctx: &'life1 mut CheckContext,
    ) -> Pin<Box<dyn Future<Output = Vec<CheckResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait that all audit checks implement.

Required Methods§

Source

fn id(&self) -> &str

Unique check ID (e.g., “CONF-001”).

Source

fn name(&self) -> &str

Human-readable name.

Source

fn category(&self) -> CheckCategory

Category of this check.

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, ctx: &'life1 mut CheckContext, ) -> Pin<Box<dyn Future<Output = Vec<CheckResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Run the check. May return multiple findings.

Implementors§