pub struct DecodeReport {
pub format: String,
pub container_only: bool,
pub geometry_transferred: bool,
pub coverage: BTreeMap<String, usize>,
pub losses: Vec<LossNote>,
pub notes: Vec<String>,
}Expand description
Transfer status and loss details from a successful decode.
Fields§
§format: StringSource format id.
container_only: boolWhether the decode stopped at the container layer (no entity decode).
geometry_transferred: boolWhether the decoder transferred B-rep geometry into the IR.
coverage: BTreeMap<String, usize>Decode coverage counts keyed by measure name.
losses: Vec<LossNote>Explicit loss notes.
notes: Vec<String>Free-form informational notes (e.g. container findings).
Implementations§
Source§impl DecodeReport
impl DecodeReport
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Count loss notes at or above Severity::Error.
Trait Implementations§
Source§impl Clone for DecodeReport
impl Clone for DecodeReport
Source§fn clone(&self) -> DecodeReport
fn clone(&self) -> DecodeReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeReport
impl Debug for DecodeReport
Source§impl<'de> Deserialize<'de> for DecodeReport
impl<'de> Deserialize<'de> for DecodeReport
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 JsonSchema for DecodeReport
impl JsonSchema for DecodeReport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DecodeReport
impl PartialEq for DecodeReport
Source§impl Serialize for DecodeReport
impl Serialize for DecodeReport
impl StructuralPartialEq for DecodeReport
Auto Trait Implementations§
impl Freeze for DecodeReport
impl RefUnwindSafe for DecodeReport
impl Send for DecodeReport
impl Sync for DecodeReport
impl Unpin for DecodeReport
impl UnsafeUnpin for DecodeReport
impl UnwindSafe for DecodeReport
Blanket Implementations§
Source§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
Mutably borrows from an owned value. Read more