#dynamo-db #serde #rusoto

serde_dynamodb

de/serialize struct to HashMap<String, AttributeValue> with Serde to use with Rusoto DynamoDB

19 unstable releases (8 breaking)

0.9.0 Jun 30, 2021
0.8.0 Mar 24, 2021
0.7.0 Jan 9, 2021
0.6.0 Jul 25, 2020
0.1.1 Mar 16, 2018

#20 in #rusoto

Download history 217/week @ 2024-07-19 322/week @ 2024-07-26 310/week @ 2024-08-02 203/week @ 2024-08-09 201/week @ 2024-08-16 169/week @ 2024-08-23 189/week @ 2024-08-30 138/week @ 2024-09-06 124/week @ 2024-09-13 173/week @ 2024-09-20 199/week @ 2024-09-27 172/week @ 2024-10-04 184/week @ 2024-10-11 210/week @ 2024-10-18 226/week @ 2024-10-25 206/week @ 2024-11-01

854 downloads per month
Used in csml_engine

MIT license

105KB
3K SLoC

serde_dynamodb License: MIT Release 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

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

~17–31MB
~580K SLoC