Skip to main content

Scanner

Trait Scanner 

Source
pub trait Scanner {
    // Required method
    fn scan(&self, top: &Path, index: &Path) -> Result<SecretScan, Error>;
}
Expand description

Scans the content a commit would record.

Required Methods§

Source

fn scan(&self, top: &Path, index: &Path) -> Result<SecretScan, Error>

index is a git index file holding exactly what the commit will record: HEAD plus the named paths. Point GIT_INDEX_FILE at it and read the staged content.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§