Skip to main content

AppStoreRule

Trait AppStoreRule 

Source
pub trait AppStoreRule: Send + Sync {
    // Required methods
    fn id(&self) -> &'static str;
    fn name(&self) -> &'static str;
    fn category(&self) -> RuleCategory;
    fn severity(&self) -> Severity;
    fn recommendation(&self) -> &'static str;
    fn evaluate(
        &self,
        artifact: &ArtifactContext<'_>,
    ) -> Result<RuleReport, RuleError>;
}

Required Methods§

Source

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

Source

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

Source

fn category(&self) -> RuleCategory

Source

fn severity(&self) -> Severity

Source

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

Source

fn evaluate( &self, artifact: &ArtifactContext<'_>, ) -> Result<RuleReport, RuleError>

Implementors§