pub struct SemanticDiffResult {
pub overall_similarity: f64,
pub section_similarities: Vec<SectionSimilarity>,
pub semantic_changes: Vec<SemanticChange>,
}Expand description
Full result of a semantic diff between two document versions.
Fields§
§overall_similarity: f64Weighted average cosine similarity across all matched/renamed sections.
Pure adds/removes contribute 0.0 to the average.
section_similarities: Vec<SectionSimilarity>Per-section comparison details.
semantic_changes: Vec<SemanticChange>Change annotations for matched/renamed sections.
Trait Implementations§
Source§impl Clone for SemanticDiffResult
impl Clone for SemanticDiffResult
Source§fn clone(&self) -> SemanticDiffResult
fn clone(&self) -> SemanticDiffResult
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 moreSource§impl Debug for SemanticDiffResult
impl Debug for SemanticDiffResult
Source§impl<'de> Deserialize<'de> for SemanticDiffResult
impl<'de> Deserialize<'de> for SemanticDiffResult
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 SemanticDiffResult
impl RefUnwindSafe for SemanticDiffResult
impl Send for SemanticDiffResult
impl Sync for SemanticDiffResult
impl Unpin for SemanticDiffResult
impl UnsafeUnpin for SemanticDiffResult
impl UnwindSafe for SemanticDiffResult
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