#[non_exhaustive]pub struct DataModelExtraction {
pub model: DataModel,
pub total_entities: usize,
}Expand description
What extract_data_model_with returns:
the data model, plus the number of STEP instances the scan saw.
total_entities is NOT model.entities.len() whenever the table was
narrowed (DataModelEntities::Rooted): over various/O-S1-BWK-BIM architectural a rooted table holds 211,716 rows for 4,411,807 instances.
The parse routes’ DataModelStats.entity_count describes the model, not
the variant served (#6034); with the narrowing moved ahead of extraction
(#9582) there is no “before” to read entities.len() from, so the count
comes out of the scan alongside the model.
It lives here rather than on DataModel because DataModel is a
published struct with all-public fields: a new field there breaks every
downstream struct literal. This type is new and #[non_exhaustive], so
it can grow without that cost.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: DataModelThe extracted data model, already narrowed to the requested variant.
total_entities: usizeSTEP instances the scan saw, before any narrowing.
Trait Implementations§
Source§impl Clone for DataModelExtraction
impl Clone for DataModelExtraction
Source§fn clone(&self) -> DataModelExtraction
fn clone(&self) -> DataModelExtraction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DataModelExtraction
impl RefUnwindSafe for DataModelExtraction
impl Send for DataModelExtraction
impl Sync for DataModelExtraction
impl Unpin for DataModelExtraction
impl UnwindSafe for DataModelExtraction
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.