pub(crate) fn get_enum_from_input(target: &DeriveInput) -> DataEnum
Expand description

Checks that the passed input’s .data is an Enum and clones the ref