You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: enum.rs
    path of file: ./repos/ts-rs/macros/src/attr
    
    the code of the file until where you have to start completion: use syn::{Attribute, Ident, Result};

use crate::{
    attr::{parse_assign_inflection, parse_assign_str, Inflection},
    utils::{parse_attrs, parse_docs},
};

#[derive(Default)]
pub struct EnumAttr {
    pub rename_all: Option<Inf
    
    pub fn from_attrs(attrs: &[Attribute]) -> Result<Self> {
        let mut result = Self::default();
        parse_attrs(attrs)?.for_each(|a| result.merge(a));

        let docs = parse_docs(attrs)?;
        result.docs = docs;

        #[cfg(feature = "serde-compat")]
        crate::utils::parse_serde_attrs::<SerdeEnumAttr>(attrs).for_each(|a| result.merge(a.0));
        Ok(result)
    }