Struct protobuf::reflect::EnumDescriptor [−][src]
pub struct EnumDescriptor { /* fields omitted */ }
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,
[src]
pub fn new_pb_name<E>(
name_in_file: &'static str,
file: &'static FileDescriptorProto
) -> EnumDescriptor where
E: ProtobufEnum,
[src]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
Auto Trait Implementations
impl RefUnwindSafe for EnumDescriptor
impl Send for EnumDescriptor
impl Sync for EnumDescriptor
impl Unpin for EnumDescriptor
impl UnwindSafe for EnumDescriptor