#[repr(i32)]pub enum Type {
Show 16 variants
Unspecified = 0,
Boolean = 1,
Byte = 2,
Int16 = 3,
Int32 = 4,
Int64 = 5,
Float = 6,
Double = 7,
Decimal = 8,
String = 9,
Binary = 10,
Timestamp = 11,
Date = 12,
Time = 13,
Record = 14,
Null = 100,
}
Expand description
Type information for fields in schemas and partition schemas.
Variants§
Unspecified = 0
SchemaType unspecified.
Boolean = 1
Boolean field.
Byte = 2
Single byte numeric field.
Int16 = 3
16-bit numeric field.
Int32 = 4
32-bit numeric field.
Int64 = 5
64-bit numeric field.
Float = 6
Floating point numeric field.
Double = 7
Double precision numeric field.
Decimal = 8
Real value numeric field.
String = 9
Sequence of characters field.
Binary = 10
Sequence of bytes field.
Timestamp = 11
Date and time field.
Date = 12
Date field.
Time = 13
Time field.
Record = 14
Structured field. Nested fields that define the structure of the map. If all nested fields are nullable, this field represents a union.
Null = 100
Null field that does not have values.
Implementations§
source§impl Type
impl Type
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Type
impl Ord for Type
source§impl PartialEq for Type
impl PartialEq for Type
source§impl PartialOrd for Type
impl PartialOrd for Type
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Type
impl TryFrom<i32> for Type
§type Error = DecodeError
type Error = DecodeError
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request