Skip to main content

SeqColStore

Trait SeqColStore 

Source
pub trait SeqColStore: Send + Sync {
    // Required methods
    fn get_collection(&self, digest: &str) -> Option<&SeqCol>;
    fn list_collections(
        &self,
        filters: &[(String, String)],
        page: usize,
        page_size: usize,
    ) -> ListResult;
    fn get_attribute(&self, name: &str, digest: &str) -> Option<Value>;
    fn count(&self) -> usize;
}
Expand description

Trait for storing and retrieving sequence collections.

Required Methods§

Source

fn get_collection(&self, digest: &str) -> Option<&SeqCol>

Get a collection by its Level 0 digest.

Source

fn list_collections( &self, filters: &[(String, String)], page: usize, page_size: usize, ) -> ListResult

List collections with optional attribute-based filters, paginated.

Source

fn get_attribute(&self, name: &str, digest: &str) -> Option<Value>

Get a single attribute array by attribute name and its digest.

Source

fn count(&self) -> usize

Return the total number of collections.

Implementors§