#[non_exhaustive]pub enum LossCode {
Show 35 variants
ContainerOnly,
MissingGeometryStream,
TopologyNotTransferred,
GeometryNotTransferred,
ReferenceGraphNotClosed,
TopologyGaugeSubstituted,
CarrierAxisInferred,
CarrierSummary,
MaterialNotTransferred,
MetadataNotTransferred,
AttributesNotTransferred,
FeatureHistoryRetained,
AssemblyComponentsExternal,
RecordNotTyped,
DecodeDiagnostic,
MeshVertexPrecision,
ObjectRecordsUntransferred,
UnsupportedObjectFamily,
AssetNotTransferred,
NoExportableSolids,
HiddenBodyOmitted,
BodyTransformNotApplied,
AnalyticSurfaceNormalized,
EllipticalConeReduced,
CurvelessEdgeOmitted,
UnknownSurfaceFaceOmitted,
PcurveOmitted,
SubdOmitted,
TessellationOmitted,
PmiOmitted,
SourceAssociationOmitted,
PassthroughRecordOmitted,
ProceduralReduced,
ParametricRecordOmitted,
AppearanceReduced,
}Expand description
Stable machine-readable loss kinds.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ContainerOnly
Container-only decode was requested; entity decode was not attempted.
MissingGeometryStream
No geometry stream was located in the container, so no B-rep could be transferred.
TopologyNotTransferred
The B-rep topology graph was not transferred, though carriers or a container were decoded.
GeometryNotTransferred
B-rep geometry was not transferred, though carriers or a container were decoded.
ReferenceGraphNotClosed
A reference graph decoded but did not close into a consistent surface/pcurve/edge/vertex binding.
TopologyGaugeSubstituted
Face sense, body kind, or a body/region/shell hierarchy was supplied by a deterministic gauge because the source fields were unresolved.
CarrierAxisInferred
A carrier axis, plane, or orientation was inferred from adjacent carriers rather than read from a source field.
CarrierSummary
Informational carrier or record census; no content was lost.
MaterialNotTransferred
Materials or appearances were not transferred.
MetadataNotTransferred
Document, feature, or part metadata was not transferred.
AttributesNotTransferred
Attributes (names, colors, custom attributes) were not transferred.
FeatureHistoryRetained
Named feature operations and their dependency tables were retained as native passthrough rather than replayed.
AssemblyComponentsExternal
The part is an assembly; component geometry lives in external referenced files, not inline.
RecordNotTyped
A record was decoded but yielded no typed IR entity.
DecodeDiagnostic
A decode-time diagnostic surfaced as a loss note; detail is in the message.
MeshVertexPrecision
Standalone mesh vertices were stored at reduced (f32) precision by the source archive.
ObjectRecordsUntransferred
Some source object records were not transferred to typed IR.
UnsupportedObjectFamily
An object family or class is not supported and was not transferred.
AssetNotTransferred
A named source asset (geometry, material, or other) was not transferred.
NoExportableSolids
The IR contained no exportable solids, so the target representation is empty.
HiddenBodyOmitted
Hidden bodies were omitted from the exported output.
BodyTransformNotApplied
A body’s non-identity transform was not applied; coordinates are written in body-local space.
AnalyticSurfaceNormalized
Signed or self-intersecting analytic surfaces were normalized to the target’s positive-radius convention.
EllipticalConeReduced
Elliptical cones were reduced to circular conical carriers.
CurvelessEdgeOmitted
Edges without a typed 3D curve were omitted from their edge loops.
UnknownSurfaceFaceOmitted
Faces resting on an unknown surface were omitted from the exported shell.
PcurveOmitted
Parameter-space pcurves were not written; consumers recompute trims.
SubdOmitted
Subdivision surfaces were omitted because the writer does not encode control cages.
TessellationOmitted
Tessellations were omitted because the writer emits exact geometry only.
PmiOmitted
Product-manufacturing-information annotations were not represented in the target.
SourceAssociationOmitted
Source-object associations were not represented in the target.
PassthroughRecordOmitted
Uninterpreted passthrough records were not represented in the target.
ProceduralReduced
Procedural surface or curve definitions were reduced to their solved carriers.
ParametricRecordOmitted
Parametric design or history records were not represented in the target.
AppearanceReduced
Appearance assets were reduced to base colors; schemas, textures, and shader properties were dropped.
Implementations§
Source§impl LossCode
impl LossCode
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The stable snake_case identifier, matching the serialized form.
Sourcepub fn strict_consequence(self) -> StrictConsequence
pub fn strict_consequence(self) -> StrictConsequence
Returns the strict-mode consequence of this code.
Trait Implementations§
impl Copy for LossCode
Source§impl<'de> Deserialize<'de> for LossCode
impl<'de> Deserialize<'de> for LossCode
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>,
impl Eq for LossCode
Source§impl JsonSchema for LossCode
impl JsonSchema for LossCode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more