[go: up one dir, main page]

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]

[src]

Returns true if value is a variant of Kind.

[src]

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

Trait Implementations

impl Default for Kind
[src]

[src]

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

impl Clone for Kind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Kind
[src]

impl Debug for Kind
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Kind
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for Kind
[src]