pub struct WorstHost {
pub product_id: u32,
pub ifc_type: String,
pub openings: u64,
pub csg_failures: u64,
pub first_failure_label: Option<String>,
pub bbox: Option<HostBbox>,
pub triangle_count: Option<u64>,
}Expand description
One of the worst-failing host elements (bounded top-N, opt-in detail).
Fields§
§product_id: u32§ifc_type: String§openings: u64§csg_failures: u64§first_failure_label: Option<String>SKIPPED WHEN None, like the two fields below. The TypeScript mirrors
declare these as field?: T, which means the key is ABSENT; a plain
Option writes an explicit null through serde_json (the server
response path), and a consumer that guards with !== undefined then
throws on it. serde_wasm_bindgen writes None as undefined, so the
wasm boundary hid the difference. Deserialization is unaffected: a
missing key and an explicit null both read back as None.
bbox: Option<HostBbox>World-space AABB of the host mesh, when captured by
record_host_cut_effect (opt-in per-product detail, #C1). None when
no void cut touched this host (e.g. the failure came from a
non-router CSG path).
triangle_count: Option<u64>Final triangle count of the host’s mesh: post-cut (tris_after) when a
void subtraction ran, falling back to the pre-cut count
(tris_before) when it didn’t (the un-cut host is what actually
renders in that case). None when neither was captured.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorstHost
impl<'de> Deserialize<'de> for WorstHost
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>,
Auto Trait Implementations§
impl Freeze for WorstHost
impl RefUnwindSafe for WorstHost
impl Send for WorstHost
impl Sync for WorstHost
impl Unpin for WorstHost
impl UnwindSafe for WorstHost
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.