//! blob Operation trait for the blob module (blob access on bare repositories based on gix). use gix::hash::ObjectId; use crate::blob::types::{BlobContent, BlobMeta, LfsPointer, RawDownload}; /// blob Operation trait. pub trait BlobOps { fn blob_content(&self, id: &ObjectId) -> Result; fn blob_metadata(&self, id: &ObjectId) -> Result; fn blob_is_lfs_pointer(&self, data: &[u8]) -> Result, crate::Error>; fn blob_raw_download(&self, id: &ObjectId) -> Result; }