in src/store/dynamodb/mod.rs [136:148]
fn try_from(value: HashMap<String, AttributeValue>) -> Result<Self, Self::Error> {
Ok(Product {
id: value
.get_s("id")
.ok_or(Error::InternalError("Missing id"))?,
name: value
.get_s("name")
.ok_or(Error::InternalError("Missing name"))?,
price: value
.get_n("price")
.ok_or(Error::InternalError("Missing price"))?,
})
}