pub struct ValidationResult {
pub valid: bool,
pub tier: Tier,
pub delta: f32,
pub pure_density: f32,
pub ambiguity: f32,
pub error: Option<&'static str>,
pub metrics: Option<DensityMetrics>,
}Expand description
Validation result
Fields§
§valid: boolIs document valid?
tier: TierQuality tier
delta: f32Semantic density δ ∈ [0, 1]
pure_density: f32Pure density ρ (symbols/tokens)
ambiguity: f32Ambiguity score ∈ [0, 1]
error: Option<&'static str>Optional error message
metrics: Option<DensityMetrics>Detailed metrics (if computed)
Implementations§
Source§impl ValidationResult
impl ValidationResult
Trait Implementations§
Source§impl Clone for ValidationResult
impl Clone for ValidationResult
Source§fn clone(&self) -> ValidationResult
fn clone(&self) -> ValidationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnwindSafe for ValidationResult
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