Struct protobuf::reflect::EnumDescriptor
source · [−]pub struct EnumDescriptor { /* private fields */ }
Expand description
Dynamic representation of enum type.
Can be used in reflective operations.
Implementations
EnumDescriptor
for enum type
👎 Deprecated since 2.12: Please regenerate .rs files from .proto files to use newer APIs
👎 Deprecated since 2.12:
Please regenerate .rs files from .proto files to use newer APIs
Create new enum descriptor.
This function is called by generated code, and should not be called manually.
pub fn new_pb_name<E>(
name_in_file: &'static str,
file: &'static FileDescriptorProto
) -> EnumDescriptor where
E: ProtobufEnum,
pub fn new_pb_name<E>(
name_in_file: &'static str,
file: &'static FileDescriptorProto
) -> EnumDescriptor where
E: ProtobufEnum,
Create new enum descriptor.
This function is called by generated code, and should not be called manually.
Find enum value by name
Find enum value by number