Enum apache_avro::schema::SchemaKind
source · [−]pub enum SchemaKind {
Show 23 variants
Null,
Boolean,
Int,
Long,
Float,
Double,
Bytes,
String,
Array,
Map,
Union,
Record,
Enum,
Fixed,
Decimal,
Uuid,
Date,
TimeMillis,
TimeMicros,
TimestampMillis,
TimestampMicros,
Duration,
Ref,
}
Expand description
Auto-generated discriminant enum variants
Variants
Null
A null
Avro schema.
Boolean
A boolean
Avro schema.
Int
An int
Avro schema.
Long
A long
Avro schema.
Float
A float
Avro schema.
Double
A double
Avro schema.
Bytes
A bytes
Avro schema.
Bytes
represents a sequence of 8-bit unsigned bytes.
String
A string
Avro schema.
String
represents a unicode character sequence.
Array
A array
Avro schema. Avro arrays are required to have the same type for each element.
This variant holds the Schema
for the array element type.
Map
A map
Avro schema.
Map
holds a pointer to the Schema
of its values, which must all be the same schema.
Map
keys are assumed to be string
.
Union
A union
Avro schema.
Record
A record
Avro schema.
The lookup
table maps field names to their position in the Vec
of fields
.
Enum
An enum
Avro schema.
Fixed
A fixed
Avro schema.
Decimal
Logical type which represents Decimal
values. The underlying type is serialized and
deserialized as Schema::Bytes
or Schema::Fixed
.
scale
defaults to 0 and is an integer greater than or equal to 0 and precision
is an
integer greater than 0.
Uuid
A universally unique identifier, annotating a string.
Date
Logical type which represents the number of days since the unix epoch.
Serialization format is Schema::Int
.
TimeMillis
The time of day in number of milliseconds after midnight with no reference any calendar, time zone or date in particular.
TimeMicros
The time of day in number of microseconds after midnight with no reference any calendar, time zone or date in particular.
TimestampMillis
An instant in time represented as the number of milliseconds after the UNIX epoch.
TimestampMicros
An instant in time represented as the number of microseconds after the UNIX epoch.
Duration
An amount of time defined by a number of months, days and milliseconds.
Ref
Implementations
sourceimpl SchemaKind
impl SchemaKind
Trait Implementations
sourceimpl Clone for SchemaKind
impl Clone for SchemaKind
sourcefn clone(&self) -> SchemaKind
fn clone(&self) -> SchemaKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SchemaKind
impl Debug for SchemaKind
sourceimpl<'_enum> From<&'_enum Schema> for SchemaKind
impl<'_enum> From<&'_enum Schema> for SchemaKind
sourcefn from(val: &'_enum Schema) -> SchemaKind
fn from(val: &'_enum Schema) -> SchemaKind
Converts to this type from the input type.
sourceimpl From<&Value> for SchemaKind
impl From<&Value> for SchemaKind
sourceimpl From<Schema> for SchemaKind
impl From<Schema> for SchemaKind
sourcefn from(val: Schema) -> SchemaKind
fn from(val: Schema) -> SchemaKind
Converts to this type from the input type.
sourceimpl Hash for SchemaKind
impl Hash for SchemaKind
sourceimpl Ord for SchemaKind
impl Ord for SchemaKind
sourcefn cmp(&self, other: &SchemaKind) -> Ordering
fn cmp(&self, other: &SchemaKind) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SchemaKind> for SchemaKind
impl PartialEq<SchemaKind> for SchemaKind
sourceimpl PartialOrd<SchemaKind> for SchemaKind
impl PartialOrd<SchemaKind> for SchemaKind
sourcefn partial_cmp(&self, other: &SchemaKind) -> Option<Ordering>
fn partial_cmp(&self, other: &SchemaKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SchemaKind
impl Eq for SchemaKind
impl StructuralEq for SchemaKind
impl StructuralPartialEq for SchemaKind
Auto Trait Implementations
impl RefUnwindSafe for SchemaKind
impl Send for SchemaKind
impl Sync for SchemaKind
impl Unpin for SchemaKind
impl UnwindSafe for SchemaKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more