pub trait CompositeKeySchema: KeySchema<Kind = CompositeKey> {
type SortKey: AttributeDefinition;
}Expand description
A KeySchema with both a partition key and a sort key.
Implemented automatically by key_schema!,
table_definitions! and
index_definitions! when both PartitionKey
and SortKey are declared. Tables and indexes with this schema expose
sort-key methods on their query builders (e.g. sk_eq, sk_begins_with).
§Examples
use dynamodb_facade::{CompositeKeySchema, TableSchema};
fn _assert_composite<KS: CompositeKeySchema>() {}
// PlatformTable's key schema has both PK and SK.
_assert_composite::<TableSchema<PlatformTable>>();Required Associated Types§
Sourcetype SortKey: AttributeDefinition
type SortKey: AttributeDefinition
The sort key attribute definition.
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.