pub enum TableNameContext {
CreateTable,
ReadWrite,
}Expand description
Per-operation context for table-name validation.
AWS DynamoDB applies different constraints to tableName depending on the
operation. CreateTable enforces a minimum of 3 characters and a regex
pattern. Read/write operations (PutItem, GetItem, Query, Scan, UpdateItem,
DeleteItem, BatchGet/Write, TransactGet/Write) only enforce a minimum of 1
character; the regex pattern only fires on a non-empty invalid name.
Variants§
CreateTable
CreateTable: regex pattern + minimum length 3.
ReadWrite
PutItem and friends: minimum length 1, regex pattern only on non-empty input.
Trait Implementations§
Source§impl Clone for TableNameContext
impl Clone for TableNameContext
Source§fn clone(&self) -> TableNameContext
fn clone(&self) -> TableNameContext
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 moreimpl Copy for TableNameContext
Auto Trait Implementations§
impl Freeze for TableNameContext
impl RefUnwindSafe for TableNameContext
impl Send for TableNameContext
impl Sync for TableNameContext
impl Unpin for TableNameContext
impl UnsafeUnpin for TableNameContext
impl UnwindSafe for TableNameContext
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