Struct schema_analysis::FieldStatus
source · pub struct FieldStatus {
pub may_be_null: bool,
pub may_be_normal: bool,
pub may_be_missing: bool,
pub may_be_duplicate: bool,
}
Expand description
The FieldStatus keeps track of what kind of values a Field has been found to have.
Fields§
§may_be_null: bool
§may_be_normal: bool
The Field has been found to be a normal value, where normal means any valid value for the Schema associated with the Field.
may_be_missing: bool
The Field was found only on some Structs or the Sequence to which it belongs might be empty (if only empty sequences are found, then the Schema in the Field will also be None).
may_be_duplicate: bool
Sometimes a field might appear more than once in the same Struct. In that case all instances are considered, but this flag is also enabled. This is useful to spot suspicious data, but also to detect sequences in xml files. See here for more info.
Implementations§
source§impl FieldStatus
impl FieldStatus
Trait Implementations§
source§impl Clone for FieldStatus
impl Clone for FieldStatus
source§fn clone(&self) -> FieldStatus
fn clone(&self) -> FieldStatus
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 FieldStatus
impl Coalesce for FieldStatus
source§impl Debug for FieldStatus
impl Debug for FieldStatus
source§impl Default for FieldStatus
impl Default for FieldStatus
source§fn default() -> FieldStatus
fn default() -> FieldStatus
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FieldStatus
impl<'de> Deserialize<'de> for FieldStatus
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 Hash for FieldStatus
impl Hash for FieldStatus
source§impl PartialEq<FieldStatus> for FieldStatus
impl PartialEq<FieldStatus> for FieldStatus
source§fn eq(&self, other: &FieldStatus) -> bool
fn eq(&self, other: &FieldStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FieldStatus
impl Serialize for FieldStatus
impl Eq for FieldStatus
impl StructuralEq for FieldStatus
impl StructuralPartialEq for FieldStatus
Auto Trait Implementations§
impl RefUnwindSafe for FieldStatus
impl Send for FieldStatus
impl Sync for FieldStatus
impl Unpin for FieldStatus
impl UnwindSafe for FieldStatus
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.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.