Function extract_name_attribute

Source
pub(crate) fn extract_name_attribute(variant: &Variant) -> Option<String>
Expand description

Extract the string value from a #[name = "..."] attribute if present