pub fn enum_name<E>(value: i32, name: fn(&E) -> &'static str) -> StringExpand description
The protobuf name of an enum value of type E, or its number.
name is the enum’s as_str_name, passed because prost generates it as
an inherent method rather than a trait method.