Skip to main content

KeyConditionState

Trait KeyConditionState 

Source
pub trait KeyConditionState: KeyConditionStateSeal { }
Expand description

Sealed typestate marker for KeyCondition build stages.

This trait is sealed and cannot be implemented outside this crate. The two implementing types are hidden from public docs:

  • PkOnly — only the partition key has been set; sort key methods are available for composite-key schemas.
  • WithSk — a sort key condition has been added; no further SK methods are available.

You may encounter this trait as a bound on KeyCondition’s type parameter S, but you never need to name the concrete marker types directly.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§