pub struct LocalSecondaryIndex {
pub name: String,
pub sort_key_attribute: String,
pub projection: IndexProjection,
}Expand description
Local Secondary Index definition
LSI shares the same partition key as the base table but uses a different attribute value as the sort key.
Fields§
§name: StringIndex name (unique per table)
sort_key_attribute: StringAttribute name to use as alternative sort key
projection: IndexProjectionWhich attributes to project into the index
Implementations§
Trait Implementations§
Source§impl Clone for LocalSecondaryIndex
impl Clone for LocalSecondaryIndex
Source§fn clone(&self) -> LocalSecondaryIndex
fn clone(&self) -> LocalSecondaryIndex
Returns a duplicate of the value. Read more
1.0.0 · 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 LocalSecondaryIndex
impl Debug for LocalSecondaryIndex
Source§impl<'de> Deserialize<'de> for LocalSecondaryIndex
impl<'de> Deserialize<'de> for LocalSecondaryIndex
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LocalSecondaryIndex
impl PartialEq for LocalSecondaryIndex
Source§impl Serialize for LocalSecondaryIndex
impl Serialize for LocalSecondaryIndex
impl Eq for LocalSecondaryIndex
impl StructuralPartialEq for LocalSecondaryIndex
Auto Trait Implementations§
impl Freeze for LocalSecondaryIndex
impl RefUnwindSafe for LocalSecondaryIndex
impl Send for LocalSecondaryIndex
impl Sync for LocalSecondaryIndex
impl Unpin for LocalSecondaryIndex
impl UnwindSafe for LocalSecondaryIndex
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