pub enum FieldDescriptorProto_Type {
Show 18 variants
TYPE_DOUBLE = 1,
TYPE_FLOAT = 2,
TYPE_INT64 = 3,
TYPE_UINT64 = 4,
TYPE_INT32 = 5,
TYPE_FIXED64 = 6,
TYPE_FIXED32 = 7,
TYPE_BOOL = 8,
TYPE_STRING = 9,
TYPE_GROUP = 10,
TYPE_MESSAGE = 11,
TYPE_BYTES = 12,
TYPE_UINT32 = 13,
TYPE_ENUM = 14,
TYPE_SFIXED32 = 15,
TYPE_SFIXED64 = 16,
TYPE_SINT32 = 17,
TYPE_SINT64 = 18,
}
Variants§
TYPE_DOUBLE = 1
TYPE_FLOAT = 2
TYPE_INT64 = 3
TYPE_UINT64 = 4
TYPE_INT32 = 5
TYPE_FIXED64 = 6
TYPE_FIXED32 = 7
TYPE_BOOL = 8
TYPE_STRING = 9
TYPE_GROUP = 10
TYPE_MESSAGE = 11
TYPE_BYTES = 12
TYPE_UINT32 = 13
TYPE_ENUM = 14
TYPE_SFIXED32 = 15
TYPE_SFIXED64 = 16
TYPE_SINT32 = 17
TYPE_SINT64 = 18
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 for FieldDescriptorProto_Type
impl PartialEq 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 StructuralPartialEq for FieldDescriptorProto_Type
Auto Trait Implementations§
impl Freeze for FieldDescriptorProto_Type
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)