Trait garage_table::schema::Entry[][src]

pub trait Entry<P: PartitionKey, S: SortKey>: Crdt + PartialEq + Clone + Serialize + for<'de> Deserialize<'de> + Send + Sync {
    fn partition_key(&self) -> &P;
fn sort_key(&self) -> &S; fn is_tombstone(&self) -> bool { ... } }
Expand description

Trait for an entry in a table. It must be sortable and partitionnable.

Required methods

fn partition_key(&self) -> &P[src]

Get the key used to partition

fn sort_key(&self) -> &S[src]

Get the key used to sort

Provided methods

fn is_tombstone(&self) -> bool[src]

Is the entry a tombstone? Default implementation always return false

Implementors