pub struct DiffOptions {
pub from: Option<String>,
pub to: Option<String>,
pub semantic: bool,
pub stat: bool,
pub name_only: bool,
pub unified: usize,
pub show_context: bool,
pub include_patch_text: bool,
}Expand description
Options for computing a diff report through the embeddable facade.
Fields§
§from: Option<String>§to: Option<String>§semantic: bool§stat: bool§name_only: bool§unified: usize§show_context: bool§include_patch_text: boolWhether the report should include the top-level patch string when a
patch-compatible representation is available. CLI callers set this for
--patch and for JSON output, preserving the existing machine contract.
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§fn clone(&self) -> DiffOptions
fn clone(&self) -> DiffOptions
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 DiffOptions
impl Debug for DiffOptions
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptions
impl UnwindSafe for DiffOptions
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