fn parse_name_value_attr(attr: &Attribute, name: &str) -> Option<Vec<(String, String)>> {
    let list = get_meta_list(attr)?;
    let path = list.path.get_ident()?;
    if path == name {
        let nested = list.nested;
        let attr = nested.iter().filter_map(parse_nested_meta).collect();
        Some(attr)
    } else {
        None
    }
}
// Returns a list of name-value
Returns a list of name-value
Returns a list of name - value
fn parse_name_value_attr(attr: &Attribute, name: &str) -> Option<Vec<(String, String)>> {
    let list = get_meta_list(attr)?;
    let path = list.path.get_ident()?;
    if path == name {
        let nested = list.nested;
        let attr = nested.iter().filter_map(parse_nested_meta).collect();
        Some(attr)
    } else {
        None
    }
}
fn parse_name_value_attr ( attr : & Attribute , name : & str ) -> Option < Vec < ( String , String ) > > { let list = get_meta_list ( attr ) ? ; let path = list . path . get_ident ( ) ? ; if path == name { let nested = list . nested ; let attr = nested . iter ( ) . filter_map ( parse_nested_meta ) . collect ( ) ; Some ( attr ) } else { None } }
Returns a list of name-value
Returns a list of name - value
attr
&Attribute
name
&str
attr
&Attribute
name
&str