pub fn name(&self) -> &Ident {
    match self {
      Self::Enum(InputEnum { name, .. }) => name,
      Self::Struct(InputStruct { name, .. }) => name,
    }
  }
/// get name of struct or enum.
get name of struct or enum.
get name of struct or enum .
pub fn name(&self) -> &Ident {
    match self {
      Self::Enum(InputEnum { name, .. }) => name,
      Self::Struct(InputStruct { name, .. }) => name,
    }
  }
pub fn name ( & self ) -> & Ident { match self { Self :: Enum ( InputEnum { name , .. } ) => name , Self :: Struct ( InputStruct { name , .. } ) => name , } }
get name of struct or enum.
get name of struct or enum .
&self
&self