[][src]Crate dynamodb_data

DynamoDB Data Utilities

API Example:

use dynamodb_data::*;
use std::collections::HashMap;
 
let payload: HashMap<String, rusoto_dynamodb::AttributeValue> = fields!{
    id => ::uuid::Uuid::new_v4(),
    name => "user name",
    counter => 0
};
let get_item_query = rusoto_dynamodb::GetItemInput {
    key: fields!{
        id => ::uuid::Uuid::new_v4()
    },
    ..Default::default()
};

Macros

fields

Converts the given fields to HashMap<String, AttributeValue>, automatically serializing the keys to AttributeValue VIA serde_json.

names

Functions

from_attribute_value

Converts any serializable value from a rusoto_dynamodb::AttributeValue.

from_fields

Must be something that serializes from a JSON Object.

to_attribute_value

Converts any serializable value to a rusoto_dynamodb::AttributeValue.

to_fields

Must be something that serializes to a JSON Object.