pub struct ValidationReport {
pub checks: Vec<ValidationCheck>,
pub valid: bool,
pub error_count: usize,
pub warn_count: usize,
pub original_twice_area: String,
pub parts_twice_area_sum: String,
pub part_areas: Vec<String>,
}Expand description
Full validation report for a polygon decomposition.
Fields§
§checks: Vec<ValidationCheck>All individual checks, in order.
valid: booltrue if ALL checks passed (decomposition is valid on-chain).
error_count: usizeNumber of errors.
warn_count: usizeNumber of warnings.
original_twice_area: StringOriginal polygon twice-area (string for u128).
parts_twice_area_sum: StringSum of part twice-areas (string for u128).
part_areas: Vec<String>Per-part twice-areas (strings for u128).
Trait Implementations§
Source§impl Clone for ValidationReport
impl Clone for ValidationReport
Source§fn clone(&self) -> ValidationReport
fn clone(&self) -> ValidationReport
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 ValidationReport
impl Debug for ValidationReport
Source§impl<'de> Deserialize<'de> for ValidationReport
impl<'de> Deserialize<'de> for ValidationReport
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
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnsafeUnpin for ValidationReport
impl UnwindSafe for ValidationReport
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