pub struct EnumDescriptor { /* private fields */ }
Expand description

Dynamic representation of enum type.

Can be used in reflective operations.

Implementations

Enum name as given in .proto file

EnumDescriptor for enum type

👎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.

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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.