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
TypeUnknownField type unknown.
TypeDoubleField type double.
TypeFloatField type float.
TypeInt64Field type int64.
TypeUint64Field type uint64.
TypeInt32Field type int32.
TypeFixed64Field type fixed64.
TypeFixed32Field type fixed32.
TypeBoolField type bool.
TypeStringField type string.
TypeGroupField type group. Proto2 syntax only, and deprecated.
TypeMessageField type message.
TypeBytesField type bytes.
TypeUint32Field type uint32.
TypeEnumField type enum.
TypeSfixed32Field type sfixed32.
TypeSfixed64Field type sfixed64.
TypeSint32Field type sint32.
TypeSint64Field type sint64.
Methods
impl Kind[src]
fn is_valid(value: i32) -> bool[src]
Returns true if value is a variant of Kind.
fn from_i32(value: i32) -> Option<Kind>[src]
Converts an i32 to a Kind, or None if value is not a valid variant.
Trait Implementations
impl Default for Kind[src]
impl Clone for Kind[src]
fn clone(&self) -> Kind[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for Kind[src]
impl Debug for Kind[src]
impl PartialEq for Kind[src]
fn eq(&self, __arg_0: &Kind) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.