Trait mz_catalog::durable::debug::Collection
source · pub trait Collection: Debug {
type Key;
type Value;
// Required methods
fn collection_type() -> CollectionType;
fn collection_trace(trace: Trace) -> CollectionTrace<Self>;
fn update(key: Self::Key, value: Self::Value) -> StateUpdateKind;
// Provided method
fn name() -> String { ... }
}
Expand description
The contents of the catalog are logically separated into separate Collection
s, which
describe the category of data that the content belongs to.
Required Associated Types§
sourcetype Key
type Key
Type used to stores keys for Collection
.
sourcetype Value
type Value
Type used to stores values for Collection
.
Required Methods§
sourcefn collection_type() -> CollectionType
fn collection_type() -> CollectionType
CollectionType
corresponding to Collection
.
sourcefn collection_trace(trace: Trace) -> CollectionTrace<Self>
fn collection_trace(trace: Trace) -> CollectionTrace<Self>
Extract the CollectionTrace
from a Trace
that corresponds to Collection
.
sourcefn update(key: Self::Key, value: Self::Value) -> StateUpdateKind
fn update(key: Self::Key, value: Self::Value) -> StateUpdateKind
Generate a StateUpdateKind
with key
and value
that corresponds to Collection
.
Provided Methods§
Object Safety§
This trait is not object safe.