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

pub enum FieldType<'a> {
Show 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)
Expand description

A message that is yet to be resolved.

UnresolvedEnum(&'a str)
Expand description

An enum that is yet to be resolved.

Double
Expand description

The double type.

Float
Expand description

The float type.

Int64
Expand description

The int64 type.

UInt64
Expand description

The uint64 type.

Int32
Expand description

The int32 type.

Fixed64
Expand description

The fixed64 type.

Fixed32
Expand description

The fixed32 type.

Bool
Expand description

The bool type.

String
Expand description

The string type.

Group
Expand description

The group type.

Message(&'a MessageDescriptor)
Expand description

A resolved message type.

Bytes
Expand description

The bytes type.

UInt32
Expand description

The uint32 type.

Enum(&'a EnumDescriptor)
Expand description

A resolved enum type.

SFixed32
Expand description

The sfixed32 type.

SFixed64
Expand description

The sfixed64 type.

SInt32
Expand description

The sint32 type.

SInt64
Expand description

The sint64 type.

Trait Implementations

impl<'a> Debug for FieldType<'a>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> RefUnwindSafe for FieldType<'a>

impl<'a> Send for FieldType<'a>

impl<'a> Sync for FieldType<'a>

impl<'a> Unpin for FieldType<'a>

impl<'a> UnwindSafe for FieldType<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.