Struct protobuf::reflect::EnumDescriptor[][src]

pub struct EnumDescriptor { /* fields omitted */ }
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

Performs the conversion.

Performs the conversion.

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.