Struct protobuf::reflect::EnumValueDescriptor [−][src]
pub struct EnumValueDescriptor { /* fields omitted */ }
Expand description
Description for enum variant.
Used in reflection.
Implementations
.proto
object which declared this value.
Get descriptor of enum holding this value.
Convert this value descriptor into proper enum object.
let value: EnumValueDescriptor = NullValue::NULL_VALUE.descriptor();
let null: Option<NullValue> = value.cast();
assert_eq!(Some(NullValue::NULL_VALUE), null);
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl !RefUnwindSafe for EnumValueDescriptor
impl Send for EnumValueDescriptor
impl Sync for EnumValueDescriptor
impl Unpin for EnumValueDescriptor
impl !UnwindSafe for EnumValueDescriptor
Blanket Implementations
Mutably borrows from an owned value. Read more