Enum protobuf::well_known_types::field::Kind[][src]

pub enum Kind {
Show 19 variants TYPE_UNKNOWN, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT64, TYPE_UINT64, TYPE_INT32, TYPE_FIXED64, TYPE_FIXED32, TYPE_BOOL, TYPE_STRING, TYPE_GROUP, TYPE_MESSAGE, TYPE_BYTES, TYPE_UINT32, TYPE_ENUM, TYPE_SFIXED32, TYPE_SFIXED64, TYPE_SINT32, TYPE_SINT64,
}
Expand description

Basic field types.

Variants

TYPE_UNKNOWN

TYPE_DOUBLE

TYPE_FLOAT

TYPE_INT64

TYPE_UINT64

TYPE_INT32

TYPE_FIXED64

TYPE_FIXED32

TYPE_BOOL

TYPE_STRING

TYPE_GROUP

TYPE_MESSAGE

TYPE_BYTES

TYPE_UINT32

TYPE_ENUM

TYPE_SFIXED32

TYPE_SFIXED64

TYPE_SINT32

TYPE_SINT64

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

Get enum i32 value.

Try to create an enum from i32 value. Return None if value is unknown. Read more

Get all enum values for enum type.

Get enum descriptor by type.

Get enum value descriptor.

Get enum descriptor.

Actual implementation of type properties.

Dynamic version of the type.

Pointer to a dynamic reference.

Mutable pointer to a dynamic mutable reference.

Construct a value from given reflective value. Read more

Write the value.

Default value for this type.

Convert a value into a ref value if possible. Read more

Value is non-default?

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.