pub trait Entry<P: PartitionKey, S: SortKey>: Crdt + PartialEq + Clone + Migrate + Send + Sync + 'static {
    // Required methods
    fn partition_key(&self) -> &P;
    fn sort_key(&self) -> &S;

    // Provided method
    fn is_tombstone(&self) -> bool { ... }
}
Expand description

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

Required Methods§

source

fn partition_key(&self) -> &P

Get the key used to partition

source

fn sort_key(&self) -> &S

Get the key used to sort

Provided Methods§

source

fn is_tombstone(&self) -> bool

Is the entry a tombstone? Default implementation always return false

Object Safety§

This trait is not object safe.

Implementors§