pub struct StructuredDiffResult {
pub lines: Vec<StructuredDiffLine>,
pub added_line_count: u32,
pub removed_line_count: u32,
pub added_tokens: u32,
pub removed_tokens: u32,
}Expand description
Full structured diff result with lines and summary counts.
Fields§
§lines: Vec<StructuredDiffLine>Interleaved diff lines with types and line numbers.
added_line_count: u32Number of added lines.
removed_line_count: u32Number of removed lines.
added_tokens: u32Estimated tokens added.
removed_tokens: u32Estimated tokens removed.
Trait Implementations§
Source§impl Clone for StructuredDiffResult
impl Clone for StructuredDiffResult
Source§fn clone(&self) -> StructuredDiffResult
fn clone(&self) -> StructuredDiffResult
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 StructuredDiffResult
impl Debug for StructuredDiffResult
Source§impl<'de> Deserialize<'de> for StructuredDiffResult
impl<'de> Deserialize<'de> for StructuredDiffResult
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 StructuredDiffResult
impl RefUnwindSafe for StructuredDiffResult
impl Send for StructuredDiffResult
impl Sync for StructuredDiffResult
impl Unpin for StructuredDiffResult
impl UnsafeUnpin for StructuredDiffResult
impl UnwindSafe for StructuredDiffResult
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