pub enum FieldDescriptorProto_Label {
LABEL_OPTIONAL,
LABEL_REQUIRED,
LABEL_REPEATED,
}
Variants§
Trait Implementations§
source§impl Clone for FieldDescriptorProto_Label
impl Clone for FieldDescriptorProto_Label
source§fn clone(&self) -> FieldDescriptorProto_Label
fn clone(&self) -> FieldDescriptorProto_Label
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 FieldDescriptorProto_Label
impl Debug for FieldDescriptorProto_Label
source§impl Default for FieldDescriptorProto_Label
impl Default for FieldDescriptorProto_Label
source§impl Hash for FieldDescriptorProto_Label
impl Hash for FieldDescriptorProto_Label
source§impl PartialEq<FieldDescriptorProto_Label> for FieldDescriptorProto_Label
impl PartialEq<FieldDescriptorProto_Label> for FieldDescriptorProto_Label
source§fn eq(&self, other: &FieldDescriptorProto_Label) -> bool
fn eq(&self, other: &FieldDescriptorProto_Label) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufEnum for FieldDescriptorProto_Label
impl ProtobufEnum for FieldDescriptorProto_Label
source§fn from_i32(value: i32) -> Option<FieldDescriptorProto_Label>
fn from_i32(value: i32) -> Option<FieldDescriptorProto_Label>
Try to create an enum from
i32
value.
Return None
if value is unknown.source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
source§impl ProtobufValue for FieldDescriptorProto_Label
impl ProtobufValue for FieldDescriptorProto_Label
source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for FieldDescriptorProto_Label
impl Eq for FieldDescriptorProto_Label
impl StructuralEq for FieldDescriptorProto_Label
impl StructuralPartialEq for FieldDescriptorProto_Label
Auto Trait Implementations§
impl RefUnwindSafe for FieldDescriptorProto_Label
impl Send for FieldDescriptorProto_Label
impl Sync for FieldDescriptorProto_Label
impl Unpin for FieldDescriptorProto_Label
impl UnwindSafe for FieldDescriptorProto_Label
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