Function serde_dynamodb::to_hashmap[][src]

pub fn to_hashmap<T: ?Sized>(
    value: &T
) -> Result<HashMap<String, AttributeValue>> where
    T: Serialize

Serialize the given data structure as an HashMap<String, AttributeValue>.

Errors

Serialization can fail if T’s implementation of Serialize decides to fail, or if T contains a map with non-string keys.