Trait garage_model::index_counter::CountedItem
source · pub trait CountedItem: Clone + PartialEq + Send + Sync + 'static {
type CP: PartitionKey + Clone + PartialEq + Serialize + for<'de> Deserialize<'de> + Send + Sync;
type CS: SortKey + Clone + PartialEq + Serialize + for<'de> Deserialize<'de> + Send + Sync;
const COUNTER_TABLE_NAME: &'static str;
fn counter_partition_key(&self) -> &Self::CP;
fn counter_sort_key(&self) -> &Self::CS;
fn counts(&self) -> Vec<(&'static str, i64)> ⓘ;
}