pub struct SimpleKey;Expand description
Marker type indicating a key schema with a partition key only (no sort key).
Used as the Kind associated type on KeySchema implementations
generated by key_schema! or
table_definitions! when no SortKey is
declared. A table or index with this kind implements
SimpleKeySchema.
§Examples
use dynamodb_facade::{key_schema, KeySchema, SimpleKey};
key_schema! {
SimpleSchema {
type PartitionKey = PK;
}
}
fn _assert<KS: KeySchema<Kind = SimpleKey>>() {}
_assert::<SimpleSchema>();Trait Implementations§
impl Copy for SimpleKey
impl KeySchemaKind for SimpleKey
impl<KS: KeySchema<Kind = SimpleKey> + SimpleKeySchema> ValidKeySchema<SimpleKey> for KS
Auto Trait Implementations§
impl Freeze for SimpleKey
impl RefUnwindSafe for SimpleKey
impl Send for SimpleKey
impl Sync for SimpleKey
impl Unpin for SimpleKey
impl UnsafeUnpin for SimpleKey
impl UnwindSafe for SimpleKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.