pub type IndexSchema<TD, I> = <I as IndexDefinition<TD>>::KeySchema;Expand description
Convenience alias for the KeySchema of an IndexDefinition.
Use this alias in generic bounds and function signatures to avoid spelling out the full associated-type projection every time you need to refer to an index’s key schema type.
§Examples
use dynamodb_facade::{IndexDefinition, IndexSchema, SimpleKeySchema};
// Require that an index's key schema is simple (partition key only).
fn requires_simple_index<I: IndexDefinition<PlatformTable>>()
where
IndexSchema<PlatformTable, I>: SimpleKeySchema,
{}
// TypeIndex has only a partition key, so this compiles.
requires_simple_index::<TypeIndex>();