pub struct DiffReport {
pub clean: bool,
pub local: usize,
pub remote: usize,
pub changes: Vec<Change>,
pub exceptions: ExceptionDrift,
pub out_of_scope: usize,
pub selected: Option<usize>,
pub local_total: Option<usize>,
}Expand description
The report diff renders.
Field order is the serialized JSON key order and is contractual: the root
Cargo.toml enables serde_json’s preserve_order, so reordering these
fields would silently change rendered output.
Fields§
§clean: bool§local: usize§remote: usize§changes: Vec<Change>§exceptions: ExceptionDrift§out_of_scope: usizeLocal rule files outside the active --source scope. Reported instead
of local_only so a 0.1 mirror of prebuilt rules does not read as
drift (spec 5.5). Omitted when zero, so a clean scope keeps its 0.1
output shape.
selected: Option<usize>§local_total: Option<usize>Trait Implementations§
Source§impl Clone for DiffReport
impl Clone for DiffReport
Source§fn clone(&self) -> DiffReport
fn clone(&self) -> DiffReport
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 DiffReport
impl Debug for DiffReport
Source§impl PartialEq for DiffReport
impl PartialEq for DiffReport
Source§impl Serialize for DiffReport
impl Serialize for DiffReport
impl StructuralPartialEq for DiffReport
Auto Trait Implementations§
impl Freeze for DiffReport
impl RefUnwindSafe for DiffReport
impl Send for DiffReport
impl Sync for DiffReport
impl Unpin for DiffReport
impl UnsafeUnpin for DiffReport
impl UnwindSafe for DiffReport
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