pub struct Delta {
pub address: Address,
pub kind: DeltaKind,
pub fidelity: Fidelity,
pub before: Option<String>,
pub after: Option<String>,
pub lines: Vec<Line>,
pub package: Option<PackageId>,
pub summary: Option<String>,
}Expand description
One addressed difference inside a Diff, carried at its own rung.
before and after hold content ids, not content: the identity of the
bytes on each side, absent when the side does not exist. lines carries
the text-rung comparison and is empty at the binary rung. package
names the format package whose projection or differ produced the delta —
outputs carry the package version (ADR-0003) — and is None at rungs no
package produced: the binary floor and plain-text raises. summary is a
rich delta’s difference in the format’s own terms — the affected text
and the property change — and None below the rich rung.
Fields§
§address: AddressWhere the delta lands, in the format’s own terms.
kind: DeltaKindWhat kind of change the delta records.
fidelity: FidelityThe rung the delta is carried at.
before: Option<String>The content id of the before side; None when the side does not exist.
after: Option<String>The content id of the after side; None when the side does not exist.
lines: Vec<Line>The text-rung line comparison; empty at the binary rung.
package: Option<PackageId>The package whose projection or differ produced the delta; None
at rungs no package produced.
summary: Option<String>A rich delta’s difference in the format’s own terms; None below
the rich rung.