# Aptos Iterable Derive
[](https://crates.io/crates/aptos-iterable-derive)
[](https://docs.rs/aptos-iterable-derive/latest/aptos_iterable_derive)
Derives `IntoIterator` implementations and iterator methods for single-field tuple structs.
## Usage
```rust
use aptos_iterable_derive::Iterable;
use std::collections::HashMap;
#[derive(Iterable)]
struct Config(HashMap<String, String>);
let config = Config(HashMap::new());
// Use in for loops
for (key, value) in &config { }
// Or iter() and iter_mut()
config.iter();
```
The struct must be a tuple struct with exactly one field that implements `IntoIterator`.