( attribute_name: impl Into<String>, attribute_value: &str, )
| 431 | } |
| 432 | |
| 433 | pub fn parse_integer<T>( |
| 434 | attribute_name: impl Into<String>, |
| 435 | attribute_value: &str, |
| 436 | ) -> Result<T, DBItemError> |
| 437 | where |
| 438 | T: FromStr<Err = ParseIntError>, |
| 439 | { |
| 440 | attribute_value.parse::<T>().map_err(|e| { |
| 441 | DBItemError::new( |
| 442 | attribute_name.into(), |
| 443 | Value::String(attribute_value.into()), |
| 444 | DBItemAttributeError::InvalidNumberFormat(e), |
| 445 | ) |
| 446 | }) |
| 447 | } |
| 448 | |
| 449 | pub mod batch_operations { |
| 450 | use aws_sdk_dynamodb::{ |
no outgoing calls
no test coverage detected