#[repr(i32)]pub enum Kind {
Show 19 variants
TYPE_UNKNOWN = 0,
TYPE_DOUBLE = 1,
TYPE_FLOAT = 2,
TYPE_INT64 = 3,
TYPE_UINT64 = 4,
TYPE_INT32 = 5,
TYPE_FIXED64 = 6,
TYPE_FIXED32 = 7,
TYPE_BOOL = 8,
TYPE_STRING = 9,
TYPE_GROUP = 10,
TYPE_MESSAGE = 11,
TYPE_BYTES = 12,
TYPE_UINT32 = 13,
TYPE_ENUM = 14,
TYPE_SFIXED32 = 15,
TYPE_SFIXED64 = 16,
TYPE_SINT32 = 17,
TYPE_SINT64 = 18,
}Expand description
Basic field types.
Variants§
TYPE_UNKNOWN = 0
Field type unknown.
TYPE_DOUBLE = 1
Field type double.
TYPE_FLOAT = 2
Field type float.
TYPE_INT64 = 3
Field type int64.
TYPE_UINT64 = 4
Field type uint64.
TYPE_INT32 = 5
Field type int32.
TYPE_FIXED64 = 6
Field type fixed64.
TYPE_FIXED32 = 7
Field type fixed32.
TYPE_BOOL = 8
Field type bool.
TYPE_STRING = 9
Field type string.
TYPE_GROUP = 10
Field type group. Proto2 syntax only, and deprecated.
TYPE_MESSAGE = 11
Field type message.
TYPE_BYTES = 12
Field type bytes.
TYPE_UINT32 = 13
Field type uint32.
TYPE_ENUM = 14
Field type enum.
TYPE_SFIXED32 = 15
Field type sfixed32.
TYPE_SFIXED64 = 16
Field type sfixed64.
TYPE_SINT32 = 17
Field type sint32.
TYPE_SINT64 = 18
Field type sint64.
Implementations§
Source§impl Kind
impl Kind
Sourcepub const TypeUnknown: Self = Self::TYPE_UNKNOWN
pub const TypeUnknown: Self = Self::TYPE_UNKNOWN
Idiomatic alias for Self::TYPE_UNKNOWN; Debug prints the variant name.
Sourcepub const TypeDouble: Self = Self::TYPE_DOUBLE
pub const TypeDouble: Self = Self::TYPE_DOUBLE
Idiomatic alias for Self::TYPE_DOUBLE; Debug prints the variant name.
Sourcepub const TypeFloat: Self = Self::TYPE_FLOAT
pub const TypeFloat: Self = Self::TYPE_FLOAT
Idiomatic alias for Self::TYPE_FLOAT; Debug prints the variant name.
Sourcepub const TypeInt64: Self = Self::TYPE_INT64
pub const TypeInt64: Self = Self::TYPE_INT64
Idiomatic alias for Self::TYPE_INT64; Debug prints the variant name.
Sourcepub const TypeUint64: Self = Self::TYPE_UINT64
pub const TypeUint64: Self = Self::TYPE_UINT64
Idiomatic alias for Self::TYPE_UINT64; Debug prints the variant name.
Sourcepub const TypeInt32: Self = Self::TYPE_INT32
pub const TypeInt32: Self = Self::TYPE_INT32
Idiomatic alias for Self::TYPE_INT32; Debug prints the variant name.
Sourcepub const TypeFixed64: Self = Self::TYPE_FIXED64
pub const TypeFixed64: Self = Self::TYPE_FIXED64
Idiomatic alias for Self::TYPE_FIXED64; Debug prints the variant name.
Sourcepub const TypeFixed32: Self = Self::TYPE_FIXED32
pub const TypeFixed32: Self = Self::TYPE_FIXED32
Idiomatic alias for Self::TYPE_FIXED32; Debug prints the variant name.
Sourcepub const TypeBool: Self = Self::TYPE_BOOL
pub const TypeBool: Self = Self::TYPE_BOOL
Idiomatic alias for Self::TYPE_BOOL; Debug prints the variant name.
Sourcepub const TypeString: Self = Self::TYPE_STRING
pub const TypeString: Self = Self::TYPE_STRING
Idiomatic alias for Self::TYPE_STRING; Debug prints the variant name.
Sourcepub const TypeGroup: Self = Self::TYPE_GROUP
pub const TypeGroup: Self = Self::TYPE_GROUP
Idiomatic alias for Self::TYPE_GROUP; Debug prints the variant name.
Sourcepub const TypeMessage: Self = Self::TYPE_MESSAGE
pub const TypeMessage: Self = Self::TYPE_MESSAGE
Idiomatic alias for Self::TYPE_MESSAGE; Debug prints the variant name.
Sourcepub const TypeBytes: Self = Self::TYPE_BYTES
pub const TypeBytes: Self = Self::TYPE_BYTES
Idiomatic alias for Self::TYPE_BYTES; Debug prints the variant name.
Sourcepub const TypeUint32: Self = Self::TYPE_UINT32
pub const TypeUint32: Self = Self::TYPE_UINT32
Idiomatic alias for Self::TYPE_UINT32; Debug prints the variant name.
Sourcepub const TypeEnum: Self = Self::TYPE_ENUM
pub const TypeEnum: Self = Self::TYPE_ENUM
Idiomatic alias for Self::TYPE_ENUM; Debug prints the variant name.
Sourcepub const TypeSfixed32: Self = Self::TYPE_SFIXED32
pub const TypeSfixed32: Self = Self::TYPE_SFIXED32
Idiomatic alias for Self::TYPE_SFIXED32; Debug prints the variant name.
Sourcepub const TypeSfixed64: Self = Self::TYPE_SFIXED64
pub const TypeSfixed64: Self = Self::TYPE_SFIXED64
Idiomatic alias for Self::TYPE_SFIXED64; Debug prints the variant name.
Sourcepub const TypeSint32: Self = Self::TYPE_SINT32
pub const TypeSint32: Self = Self::TYPE_SINT32
Idiomatic alias for Self::TYPE_SINT32; Debug prints the variant name.
Sourcepub const TypeSint64: Self = Self::TYPE_SINT64
pub const TypeSint64: Self = Self::TYPE_SINT64
Idiomatic alias for Self::TYPE_SINT64; Debug prints the variant name.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for Kind
Available on crate feature arbitrary only.
impl<'arbitrary> Arbitrary<'arbitrary> for Kind
arbitrary only.Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreimpl Copy for Kind
Source§impl Enumeration for Kind
impl Enumeration for Kind
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.