Enum apache_avro::schema::SchemaKind
source · pub enum SchemaKind {
Show 28 variants
Null,
Boolean,
Int,
Long,
Float,
Double,
Bytes,
String,
Array,
Map,
Union,
Record,
Enum,
Fixed,
Decimal,
BigDecimal,
Uuid,
Date,
TimeMillis,
TimeMicros,
TimestampMillis,
TimestampMicros,
TimestampNanos,
LocalTimestampMillis,
LocalTimestampMicros,
LocalTimestampNanos,
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.
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
.
BigDecimal
Logical type which represents Decimal
values without predefined scale.
The underlying type is serialized and deserialized as Schema::Bytes
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.
TimestampNanos
An instant in time represented as the number of nanoseconds after the UNIX epoch.
LocalTimestampMillis
An instant in localtime represented as the number of milliseconds after the UNIX epoch.
LocalTimestampMicros
An instant in local time represented as the number of microseconds after the UNIX epoch.
LocalTimestampNanos
An instant in local time represented as the number of nanoseconds after the UNIX epoch.
Duration
An amount of time defined by a number of months, days and milliseconds.
Ref
A reference to another schema.
Implementations§
source§impl SchemaKind
impl SchemaKind
Trait Implementations§
source§impl Clone for SchemaKind
impl Clone for SchemaKind
source§fn clone(&self) -> SchemaKind
fn clone(&self) -> SchemaKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchemaKind
impl Debug for SchemaKind
source§impl<'_enum> From<&'_enum Schema> for SchemaKind
impl<'_enum> From<&'_enum Schema> for SchemaKind
source§fn from(val: &'_enum Schema) -> SchemaKind
fn from(val: &'_enum Schema) -> SchemaKind
source§impl From<&Value> for SchemaKind
impl From<&Value> for SchemaKind
source§impl From<Schema> for SchemaKind
impl From<Schema> for SchemaKind
source§fn from(val: Schema) -> SchemaKind
fn from(val: Schema) -> SchemaKind
source§impl Hash for SchemaKind
impl Hash for SchemaKind
source§impl Ord for SchemaKind
impl Ord for SchemaKind
source§fn cmp(&self, other: &SchemaKind) -> Ordering
fn cmp(&self, other: &SchemaKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SchemaKind
impl PartialEq for SchemaKind
source§impl PartialOrd for SchemaKind
impl PartialOrd for SchemaKind
impl Copy for SchemaKind
impl Eq for SchemaKind
impl StructuralPartialEq for SchemaKind
Auto Trait Implementations§
impl Freeze for SchemaKind
impl RefUnwindSafe for SchemaKind
impl Send for SchemaKind
impl Sync for SchemaKind
impl Unpin for SchemaKind
impl UnwindSafe for SchemaKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)