syn_args/transform.rs
1use crate::Value;
2
3/// This is an intermediate type used to extract the key attribute from the value. The value must be either a Hash or a Vec.
4pub struct Transform<'a> {
5 pub value: &'a Value,
6 pub key: &'a str,
7}
8
9impl<'a> Transform<'a> {
10 pub fn new(value: &'a Value, key: &'a str) -> Self {
11 Self { value, key }
12 }
13}