pub trait Document {
// Provided methods
fn primary_field() -> Identifier { ... }
fn key_fields() -> KeyFields { ... }
}
Expand description
Identified document representation
Provided Methods§
Sourcefn primary_field() -> Identifier
fn primary_field() -> Identifier
Get the name of primary field
Sourcefn key_fields() -> KeyFields
fn key_fields() -> KeyFields
Get other key fields (indexes)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.