Enum prost_types::field::Kind[][src]

pub enum Kind {
    TypeUnknown,
    TypeDouble,
    TypeFloat,
    TypeInt64,
    TypeUint64,
    TypeInt32,
    TypeFixed64,
    TypeFixed32,
    TypeBool,
    TypeString,
    TypeGroup,
    TypeMessage,
    TypeBytes,
    TypeUint32,
    TypeEnum,
    TypeSfixed32,
    TypeSfixed64,
    TypeSint32,
    TypeSint64,
}

Basic field types.

Variants

Field type unknown.

Field type double.

Field type float.

Field type int64.

Field type uint64.

Field type int32.

Field type fixed64.

Field type fixed32.

Field type bool.

Field type string.

Field type group. Proto2 syntax only, and deprecated.

Field type message.

Field type bytes.

Field type uint32.

Field type enum.

Field type sfixed32.

Field type sfixed64.

Field type sint32.

Field type sint64.

Methods

impl Kind
[src]

Returns true if value is a variant of Kind.

Converts an i32 to a Kind, or None if value is not a valid variant.

Trait Implementations

impl Default for Kind
[src]

Returns the "default value" for a type. Read more

impl From<Kind> for i32
[src]

Performs the conversion.

impl Clone for Kind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Kind
[src]

impl Debug for Kind
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Kind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Kind
[src]

impl Hash for Kind
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for Kind
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Kind
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations

impl Send for Kind

impl Sync for Kind