Enum protobuf::well_known_types::Field_Kind
source · pub enum Field_Kind {
Show 19 variants
TYPE_UNKNOWN,
TYPE_DOUBLE,
TYPE_FLOAT,
TYPE_INT64,
TYPE_UINT64,
TYPE_INT32,
TYPE_FIXED64,
TYPE_FIXED32,
TYPE_BOOL,
TYPE_STRING,
TYPE_GROUP,
TYPE_MESSAGE,
TYPE_BYTES,
TYPE_UINT32,
TYPE_ENUM,
TYPE_SFIXED32,
TYPE_SFIXED64,
TYPE_SINT32,
TYPE_SINT64,
}
Variants§
TYPE_UNKNOWN
TYPE_DOUBLE
TYPE_FLOAT
TYPE_INT64
TYPE_UINT64
TYPE_INT32
TYPE_FIXED64
TYPE_FIXED32
TYPE_BOOL
TYPE_STRING
TYPE_GROUP
TYPE_MESSAGE
TYPE_BYTES
TYPE_UINT32
TYPE_ENUM
TYPE_SFIXED32
TYPE_SFIXED64
TYPE_SINT32
TYPE_SINT64
Trait Implementations§
source§impl Clone for Field_Kind
impl Clone for Field_Kind
source§fn clone(&self) -> Field_Kind
fn clone(&self) -> Field_Kind
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_Kind
impl Debug for Field_Kind
source§impl Default for Field_Kind
impl Default for Field_Kind
source§impl Hash for Field_Kind
impl Hash for Field_Kind
source§impl PartialEq<Field_Kind> for Field_Kind
impl PartialEq<Field_Kind> for Field_Kind
source§fn eq(&self, other: &Field_Kind) -> bool
fn eq(&self, other: &Field_Kind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufEnum for Field_Kind
impl ProtobufEnum for Field_Kind
source§fn from_i32(value: i32) -> Option<Field_Kind>
fn from_i32(value: i32) -> Option<Field_Kind>
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_Kind
impl ProtobufValue for Field_Kind
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_Kind
impl Eq for Field_Kind
impl StructuralEq for Field_Kind
impl StructuralPartialEq for Field_Kind
Auto Trait Implementations§
impl RefUnwindSafe for Field_Kind
impl Send for Field_Kind
impl Sync for Field_Kind
impl Unpin for Field_Kind
impl UnwindSafe for Field_Kind
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