Enum mz_avro::schema::SchemaKind
source · pub enum SchemaKind {
Show 15 variants
Null,
Boolean,
Int,
Long,
Float,
Double,
Bytes,
String,
Array,
Map,
Union,
Record,
Enum,
Fixed,
Unknown,
}
Expand description
This type is used to simplify enum variant comparison between Schema
and types::Value
.
NOTE This type was introduced due to a limitation of mem::discriminant
requiring a value
be constructed in order to get the discriminant, which makes it difficult to implement a
function that maps from Discriminant<Schema> -> Discriminant<Value>
. Conversion into this
intermediate type should be especially fast, as the number of enum variants is small, which
should compile into a jump-table for the conversion.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for SchemaKind
impl Clone for SchemaKind
source§fn clone(&self) -> SchemaKind
fn clone(&self) -> SchemaKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SchemaKind
impl Debug for SchemaKind
source§impl<'a> From<&'a Schema> for SchemaKind
impl<'a> From<&'a Schema> for SchemaKind
source§fn from(schema: &'a Schema) -> SchemaKind
fn from(schema: &'a Schema) -> SchemaKind
Converts to this type from the input type.
source§impl<'a> From<&'a SchemaPiece> for SchemaKind
impl<'a> From<&'a SchemaPiece> for SchemaKind
source§fn from(piece: &'a SchemaPiece) -> SchemaKind
fn from(piece: &'a SchemaPiece) -> SchemaKind
Converts to this type from the input type.
source§impl<'a> From<SchemaNode<'a>> for SchemaKind
impl<'a> From<SchemaNode<'a>> for SchemaKind
source§fn from(schema: SchemaNode<'a>) -> SchemaKind
fn from(schema: SchemaNode<'a>) -> SchemaKind
Converts to this type from the input type.
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,
Compares and returns the maximum of two values. Read more
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§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§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
Compare self to
key
and return true
if they are equal.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
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
Wrap the input message
T
in a tonic::Request