pub struct EnumValueDescriptor { /* private fields */ }
Expand description
Description for enum variant.
Used in reflection.
Implementations§
Source§impl 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§
Source§impl Clone for EnumValueDescriptor
impl Clone for EnumValueDescriptor
Source§fn clone(&self) -> EnumValueDescriptor
fn clone(&self) -> EnumValueDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnumValueDescriptor
impl Debug for EnumValueDescriptor
Source§impl Display for EnumValueDescriptor
impl Display for EnumValueDescriptor
Source§impl<'a> From<&'a EnumValueDescriptor> for ReflectValueBox
impl<'a> From<&'a EnumValueDescriptor> for ReflectValueBox
Source§fn from(v: &'a EnumValueDescriptor) -> Self
fn from(v: &'a EnumValueDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<EnumValueDescriptor> for ReflectValueBox
impl From<EnumValueDescriptor> for ReflectValueBox
Source§fn from(v: EnumValueDescriptor) -> Self
fn from(v: EnumValueDescriptor) -> Self
Converts to this type from the input type.
Source§impl<'a> From<EnumValueDescriptor> for ReflectValueRef<'a>
impl<'a> From<EnumValueDescriptor> for ReflectValueRef<'a>
Source§fn from(v: EnumValueDescriptor) -> Self
fn from(v: EnumValueDescriptor) -> Self
Converts to this type from the input type.
Source§impl Hash for EnumValueDescriptor
impl Hash for EnumValueDescriptor
Source§impl PartialEq for EnumValueDescriptor
impl PartialEq for EnumValueDescriptor
impl Eq for EnumValueDescriptor
impl StructuralPartialEq for EnumValueDescriptor
Auto Trait Implementations§
impl Freeze for EnumValueDescriptor
impl !RefUnwindSafe for EnumValueDescriptor
impl Send for EnumValueDescriptor
impl Sync for EnumValueDescriptor
impl Unpin for EnumValueDescriptor
impl !UnwindSafe for EnumValueDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more