pub struct DynamoDbCheckpointerBuilder { /* private fields */ }Available on crate feature
aws only.Expand description
Builder for configuring a DynamoDB checkpointer.
Implementations§
Source§impl DynamoDbCheckpointerBuilder
impl DynamoDbCheckpointerBuilder
Sourcepub fn table_name(
self,
table_name: impl Into<String>,
) -> DynamoDbCheckpointerBuilder
pub fn table_name( self, table_name: impl Into<String>, ) -> DynamoDbCheckpointerBuilder
Set the DynamoDB table name.
Sourcepub fn ttl(self, ttl: Duration) -> DynamoDbCheckpointerBuilder
pub fn ttl(self, ttl: Duration) -> DynamoDbCheckpointerBuilder
Set the TTL (time-to-live) for stored states.
DynamoDB will automatically delete items after this duration.
Note: You must enable TTL on the ttl attribute in your table.
Sourcepub fn client(self, client: Client) -> DynamoDbCheckpointerBuilder
pub fn client(self, client: Client) -> DynamoDbCheckpointerBuilder
Use a custom DynamoDB client.
This is useful for testing with LocalStack or using custom endpoints.
Sourcepub async fn build(self) -> Result<DynamoDbCheckpointer, Error>
pub async fn build(self) -> Result<DynamoDbCheckpointer, Error>
Build the DynamoDB checkpointer.
Trait Implementations§
Source§impl Default for DynamoDbCheckpointerBuilder
impl Default for DynamoDbCheckpointerBuilder
Source§fn default() -> DynamoDbCheckpointerBuilder
fn default() -> DynamoDbCheckpointerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DynamoDbCheckpointerBuilder
impl !RefUnwindSafe for DynamoDbCheckpointerBuilder
impl Send for DynamoDbCheckpointerBuilder
impl Sync for DynamoDbCheckpointerBuilder
impl Unpin for DynamoDbCheckpointerBuilder
impl !UnwindSafe for DynamoDbCheckpointerBuilder
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> 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.