docx_rs/reader/attributes/
name.rs

1use xml::attribute::OwnedAttribute;
2
3pub fn read_name(attrs: &[OwnedAttribute]) -> Option<String> {
4    for a in attrs {
5        let local_name = &a.name.local_name;
6        if local_name == "name" {
7            return Some(a.value.to_owned());
8        }
9    }
10    None
11}