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
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§fn clone(&self) -> GsiMapping
fn clone(&self) -> GsiMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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