Struct schema_analysis::analysis::InferredSchema
source · pub struct InferredSchema {
pub schema: Schema,
}
Expand description
InferredSchema is at the heart of this crate, it is a wrapper around Schema that interfaces with the analysis code. It implements both Deserialize and DeserializeSeed to allow for analysis both when no schema is yet available and when we wish to expand an existing schema (for data across files, for example).
Fields§
§schema: Schema
Where the juicy info lays.
Trait Implementations§
source§impl Clone for InferredSchema
impl Clone for InferredSchema
source§fn clone(&self) -> InferredSchema
fn clone(&self) -> InferredSchema
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 Coalesce for InferredSchema
impl Coalesce for InferredSchema
source§impl Debug for InferredSchema
impl Debug for InferredSchema
source§impl<'de> Deserialize<'de> for InferredSchema
impl<'de> Deserialize<'de> for InferredSchema
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> DeserializeSeed<'de> for &mut InferredSchema
impl<'de> DeserializeSeed<'de> for &mut InferredSchema
source§fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error>where
D: Deserializer<'de>,
Equivalent to the more common
Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in.source§impl PartialEq<InferredSchema> for InferredSchema
impl PartialEq<InferredSchema> for InferredSchema
source§fn eq(&self, other: &InferredSchema) -> bool
fn eq(&self, other: &InferredSchema) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InferredSchema
Auto Trait Implementations§
impl !RefUnwindSafe for InferredSchema
impl Send for InferredSchema
impl Sync for InferredSchema
impl Unpin for InferredSchema
impl !UnwindSafe for InferredSchema
Blanket Implementations§
source§impl<T> CoalesceAny for Twhere
T: Coalesce + 'static,
impl<T> CoalesceAny for Twhere
T: Coalesce + 'static,
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.