#dynamo-db #rusoto #serde

serde_dynamodb_streams

de/serialize struct to HashMap<String, AttributeValue> with Serde to use with Rusoto DynamoDB Streams. Just a fork of mockersf/serde_dynamodb with different feature flags

2 releases

0.7.1 Mar 16, 2021
0.7.0 Mar 16, 2021

#1159 in Encoding

Download history 105/week @ 2024-11-16 41/week @ 2024-11-23 14/week @ 2024-11-30 61/week @ 2024-12-07 37/week @ 2024-12-14 2/week @ 2024-12-21 23/week @ 2025-01-04 14/week @ 2025-01-11 3/week @ 2025-01-25 3/week @ 2025-02-01 5/week @ 2025-02-08 13/week @ 2025-02-15 10/week @ 2025-02-22 31/week @ 2025-03-01

60 downloads per month

MIT license

63KB
1.5K SLoC

serde_dynamodb_streams License: MIT Build Status Build status Coverage Status Realease Doc Crate

Library to de/serialize an object to an HashMap of AttributeValues used by rusoto_dynamodb to manipulate objects saved in dynamodb using serde

This is just a fork of https://github.com/mockersf/serde_dynamodb with the dynamodb bits taken out, so that streams can handle rustls

[dependencies]
serde_dynamodb_streams = "0.2.1"

Example

#[derive(Serialize, Deserialize)]
struct Todo {
    id: uuid::Uuid,
    title: &'static str,
    done: bool,
}

let todo = Todo {
    id: uuid::Uuid::new_v4(),
    title: "publish crate",
    done: false,
};

let put_item = PutItemInput {
    item: serde_dynamodb::to_hashmap(&todo).unwrap(),
    table_name: "todos".to_string(),
    ..Default::default()
};

let client = DynamoDbClient::simple(Region::UsEast1);
client.put_item(&put_item).unwrap();

Dependencies

~9–22MB
~317K SLoC