Enum power_protobuf_lib::FieldType
source · pub enum FieldType {
}
Expand description
Protobuf supported field types
Variants§
Int32(Span)
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(Span)
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(Span)
Uint64(Span)
Sint32(Span)
Protobuf sint32
§Remarks
Uses ZigZag variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
Sint64(Span)
Protobuf sint64
§Remarks
Uses ZigZag variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.
Bool(Span)
Protobuf bool
Fixed64(Span)
Protobuf fixed64
§Remarks
Always eight bytes. More efficient than uint64 if values are often greater than 2^56.
Sfixed64(Span)
Double(Span)
Protobuf double
String(Span)
Bytes(Span)
Fixed32(Span)
Protobut fixed32
§Remarks
Always four bytes. More efficient than uint32 if values are often greater than 2^28.
Sfixed32(Span)
Float(Span)
Protobut float
MessageOrEnum(Type)
Protobuf message or enum (holds the name)
Map(MapType)
Protobut map
Group(Group)
Protobuf group (deprecated)