Struct protobuf::reflect::EnumValueDescriptor
source · [−]pub struct EnumValueDescriptor { /* private fields */ }
Expand description
Description for enum variant.
Used in reflection.
Implementations
sourceimpl EnumValueDescriptor
impl EnumValueDescriptor
sourcepub fn proto(&self) -> &EnumValueDescriptorProto
pub fn proto(&self) -> &EnumValueDescriptorProto
.proto
object which declared this value.
sourcepub fn full_name(&self) -> String
pub fn full_name(&self) -> String
Fully qualified enum value name: fully qualified enum name followed by value name.
sourcepub fn enum_descriptor(&self) -> &EnumDescriptor
pub fn enum_descriptor(&self) -> &EnumDescriptor
Get descriptor of enum holding this value.
Trait Implementations
sourceimpl Clone for EnumValueDescriptor
impl Clone for EnumValueDescriptor
sourcefn clone(&self) -> EnumValueDescriptor
fn clone(&self) -> EnumValueDescriptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnumValueDescriptor
impl Debug for EnumValueDescriptor
sourceimpl Display for EnumValueDescriptor
impl Display for EnumValueDescriptor
sourceimpl<'a> From<&'a EnumValueDescriptor> for ReflectValueBox
impl<'a> From<&'a EnumValueDescriptor> for ReflectValueBox
sourcefn from(v: &'a EnumValueDescriptor) -> Self
fn from(v: &'a EnumValueDescriptor) -> Self
Converts to this type from the input type.
sourceimpl From<EnumValueDescriptor> for ReflectValueBox
impl From<EnumValueDescriptor> for ReflectValueBox
sourcefn from(v: EnumValueDescriptor) -> Self
fn from(v: EnumValueDescriptor) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<EnumValueDescriptor> for ReflectValueRef<'a>
impl<'a> From<EnumValueDescriptor> for ReflectValueRef<'a>
sourcefn from(v: EnumValueDescriptor) -> Self
fn from(v: EnumValueDescriptor) -> Self
Converts to this type from the input type.
sourceimpl Hash for EnumValueDescriptor
impl Hash for EnumValueDescriptor
sourceimpl PartialEq<EnumValueDescriptor> for EnumValueDescriptor
impl PartialEq<EnumValueDescriptor> for EnumValueDescriptor
sourcefn eq(&self, other: &EnumValueDescriptor) -> bool
fn eq(&self, other: &EnumValueDescriptor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnumValueDescriptor) -> bool
fn ne(&self, other: &EnumValueDescriptor) -> bool
This method tests for !=
.
impl Eq for EnumValueDescriptor
impl StructuralEq for EnumValueDescriptor
impl StructuralPartialEq for EnumValueDescriptor
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more