pub struct GsiMapping {
pub index_name: String,
pub pk_template: String,
pub sk_template: Option<String>,
}Expand description
A GSI mapping for an entity, describing the key templates used.
Fields§
§index_name: StringDynamoDB index name resolved from the schema’s index definitions.
For OneTable schemas, this is resolved from the name field in the
index definition if present, otherwise falls back to the OneTable key
(e.g. “gs1”). Must match the name from CreateTable / describe_table
so agents can pass it directly to query’s index_name parameter.
pk_template: StringGSI partition key template. Empty when the index hashes on a plain attribute (a tenant id, say) and only its sort key is templated: the index is still listed so the sort key template reaches every reader.
sk_template: Option<String>GSI sort key template (if the index has a sort key)
Trait Implementations§
Source§impl Clone for GsiMapping
impl Clone for GsiMapping
Source§impl Debug for GsiMapping
impl Debug for GsiMapping
Auto Trait Implementations§
impl Freeze for GsiMapping
impl RefUnwindSafe for GsiMapping
impl Send for GsiMapping
impl Sync for GsiMapping
impl Unpin for GsiMapping
impl UnsafeUnpin for GsiMapping
impl UnwindSafe for GsiMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more