clean_dynamodb_store 0.1.0

A library which follows clean architecture principles and provides a DynamoDB store implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

/// Errors that can occur when using the DynamoDB store.
#[derive(Error, Debug)]
pub enum Error {
    /// An error occurred while interacting with AWS DynamoDB.
    #[error("AWS SDK error: {0}")]
    AwsSdk(#[from] Box<aws_sdk_dynamodb::Error>),

    /// Validation error for invalid input parameters.
    #[error("Validation error: {0}")]
    Validation(String),
}

/// A specialized Result type for DynamoDB store operations.
pub type Result<T> = std::result::Result<T, Error>;