kv-derive-impl 1.0.1

Derive struct conversions from and to key-value vectors
Documentation
1
2
3
4
5
6
use crate::result::Result;

/// Constructs the structure from the iterator of key-value pairs.
pub trait FromIter: Sized {
    fn from_iter<'a>(iter: impl IntoIterator<Item = (&'a str, &'a str)>) -> Result<Self>;
}