Enum protobuf_parser::FieldType
[−]
[src]
pub enum FieldType { Int32, Int64, Uint32, Uint64, Sint32, Sint64, Bool, Fixed64, Sfixed64, Double, String, Bytes, Fixed32, Sfixed32, Float, MessageOrEnum(String), Map(Box<(FieldType, FieldType)>), Group(Vec<Field>), }
Protobuf supported field types
TODO: Groups (even if deprecated)
Variants
Int32
Protobuf int32
Remarks
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.
Int64
Protobuf int64
Remarks
Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.
Uint32
Uint64
Sint32
Protobuf sint32
Remarks
Uses ZigZag variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
Sint64
Protobuf sint64
Remarks
Uses ZigZag variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
Bool
Protobuf bool
Fixed64
Protobuf fixed64
Remarks
Always eight bytes. More efficient than uint64 if values are often greater than 2^56.
Sfixed64
Double
Protobuf double
String
Bytes
Fixed32
Protobut fixed32
Remarks
Always four bytes. More efficient than uint32 if values are often greater than 2^28.
Sfixed32
Float
Protobut float
MessageOrEnum(String)
Protobuf message or enum (holds the name)
Map(Box<(FieldType, FieldType)>)
Protobut map
Group(Vec<Field>)
Protobuf group (deprecated)
Trait Implementations
impl Debug for FieldType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for FieldType
[src]
fn clone(&self) -> FieldType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for FieldType
[src]
fn eq(&self, __arg_0: &FieldType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FieldType) -> bool
[src]
This method tests for !=
.