pub enum Field_Cardinality {
CARDINALITY_UNKNOWN,
CARDINALITY_OPTIONAL,
CARDINALITY_REQUIRED,
CARDINALITY_REPEATED,
}
Variants§
Trait Implementations§
source§impl Clone for Field_Cardinality
impl Clone for Field_Cardinality
source§fn clone(&self) -> Field_Cardinality
fn clone(&self) -> Field_Cardinality
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 Field_Cardinality
impl Debug for Field_Cardinality
source§impl Default for Field_Cardinality
impl Default for Field_Cardinality
source§impl Hash for Field_Cardinality
impl Hash for Field_Cardinality
source§impl PartialEq<Field_Cardinality> for Field_Cardinality
impl PartialEq<Field_Cardinality> for Field_Cardinality
source§fn eq(&self, other: &Field_Cardinality) -> bool
fn eq(&self, other: &Field_Cardinality) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufEnum for Field_Cardinality
impl ProtobufEnum for Field_Cardinality
source§fn from_i32(value: i32) -> Option<Field_Cardinality>
fn from_i32(value: i32) -> Option<Field_Cardinality>
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 Field_Cardinality
impl ProtobufValue for Field_Cardinality
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 Field_Cardinality
impl Eq for Field_Cardinality
impl StructuralEq for Field_Cardinality
impl StructuralPartialEq for Field_Cardinality
Auto Trait Implementations§
impl RefUnwindSafe for Field_Cardinality
impl Send for Field_Cardinality
impl Sync for Field_Cardinality
impl Unpin for Field_Cardinality
impl UnwindSafe for Field_Cardinality
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