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
854 downloads per month
Used in csml_engine
105KB
3K
SLoC
serde_dynamodb
Library to de/serialize an object to an HashMap
of AttributeValue
s 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