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