docx_reader/reader/attributes/
name.rs

1
2
3
4
5
6
7
8
9
10
11
use xml::attribute::OwnedAttribute;

pub fn read_name(attrs: &[OwnedAttribute]) -> Option<String> {
	for a in attrs {
		let local_name = &a.name.local_name;
		if local_name == "name" {
			return Some(a.value.to_owned());
		}
	}
	None
}