Trait garage_table::schema::Entry
source · 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§
sourcefn partition_key(&self) -> &P
fn partition_key(&self) -> &P
Get the key used to partition
Provided Methods§
sourcefn is_tombstone(&self) -> bool
fn is_tombstone(&self) -> bool
Is the entry a tombstone? Default implementation always return false
Object Safety§
This trait is not object safe.