use error::GitBoxError;
#[cfg(any(feature = "mysql", feature = "postgres", feature = "rusqlite"))]
pub mod db;
#[cfg(feature = "file")]
pub mod file;
#[cfg(any(feature = "archiva", feature = "artifactory", feature = "nexus", feature = "s3"))]
pub mod repo;
#[cfg(feature = "ssh2")]
pub mod ssh2;
#[cfg(feature = "s3")]
pub mod s3;
pub type GitBoxFilterResult = Result<usize, GitBoxError>;
pub trait Clean {
fn clean(&self, buf: &mut Vec<u8>, sha1: &str, size: usize) -> GitBoxFilterResult;
}
pub trait Smudge {
fn smudge(&self, buf: &mut Vec<u8>, sha1: &str, size: usize) -> GitBoxFilterResult;
}
pub trait Filter: Clean + Smudge {}