Enum protobuf::well_known_types::Field_Cardinality [−][src]
pub enum Field_Cardinality { CARDINALITY_UNKNOWN, CARDINALITY_OPTIONAL, CARDINALITY_REQUIRED, CARDINALITY_REPEATED, }
Variants
CARDINALITY_UNKNOWN
CARDINALITY_OPTIONAL
CARDINALITY_REQUIRED
CARDINALITY_REPEATED
Trait Implementations
impl Clone for Field_Cardinality
[src]
impl Clone for Field_Cardinality
fn clone(&self) -> Field_Cardinality
[src]
fn clone(&self) -> Field_Cardinality
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Field_Cardinality
[src]
impl PartialEq for Field_Cardinality
fn eq(&self, other: &Field_Cardinality) -> bool
[src]
fn eq(&self, other: &Field_Cardinality) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Field_Cardinality
[src]
impl Eq for Field_Cardinality
impl Debug for Field_Cardinality
[src]
impl Debug for Field_Cardinality
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for Field_Cardinality
[src]
impl Hash for Field_Cardinality
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl ProtobufEnum for Field_Cardinality
[src]
impl ProtobufEnum for Field_Cardinality
fn value(&self) -> i32
[src]
fn value(&self) -> i32
Get enum i32
value.
fn from_i32(value: i32) -> Option<Field_Cardinality>
[src]
fn from_i32(value: i32) -> Option<Field_Cardinality>
Try to create an enum from i32
value. Return None
if value is unknown. Read more
fn values() -> &'static [Self]
[src]
fn values() -> &'static [Self]
Get all enum values for enum type.
fn enum_descriptor_static() -> &'static EnumDescriptor
[src]
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
fn descriptor(&self) -> &'static EnumValueDescriptor
[src]
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
fn enum_descriptor(&self) -> &'static EnumDescriptor
[src]
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
impl Copy for Field_Cardinality
[src]
impl Copy for Field_Cardinality
impl Default for Field_Cardinality
[src]
impl Default for Field_Cardinality
impl ProtobufValue for Field_Cardinality
[src]
impl ProtobufValue for Field_Cardinality
fn as_ref(&self) -> ProtobufValueRef
[src]
fn as_ref(&self) -> ProtobufValueRef
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
Auto Trait Implementations
impl Send for Field_Cardinality
impl Send for Field_Cardinality
impl Sync for Field_Cardinality
impl Sync for Field_Cardinality