Enum serde_protobuf::descriptor::FieldType[][src]

pub enum FieldType<'a> {
Show 20 variants UnresolvedMessage(&'a str), UnresolvedEnum(&'a str), Double, Float, Int64, UInt64, Int32, Fixed64, Fixed32, Bool, String, Group, Message(&'a MessageDescriptor), Bytes, UInt32, Enum(&'a EnumDescriptor), SFixed32, SFixed64, SInt32, SInt64,
}
Expand description

The externally visible type of a field.

This type representation borrows references to any referenced descriptors.

Variants

UnresolvedMessage(&'a str)

Tuple Fields

0: &'a str

A message that is yet to be resolved.

UnresolvedEnum(&'a str)

Tuple Fields

0: &'a str

An enum that is yet to be resolved.

Double

The double type.

Float

The float type.

Int64

The int64 type.

UInt64

The uint64 type.

Int32

The int32 type.

Fixed64

The fixed64 type.

Fixed32

The fixed32 type.

Bool

The bool type.

String

The string type.

Group

The group type.

Message(&'a MessageDescriptor)

Tuple Fields

A resolved message type.

Bytes

The bytes type.

UInt32

The uint32 type.

Enum(&'a EnumDescriptor)

Tuple Fields

A resolved enum type.

SFixed32

The sfixed32 type.

SFixed64

The sfixed64 type.

SInt32

The sint32 type.

SInt64

The sint64 type.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.