pub struct BundleDiff {
pub added: Vec<ConceptId>,
pub removed: Vec<ConceptId>,
pub renamed: Vec<Rename>,
pub content: Vec<ConceptId>,
pub frontmatter: Vec<FrontmatterChange>,
pub trust: Vec<TrustChange>,
pub added_links: Vec<(ConceptId, ConceptId)>,
pub removed_links: Vec<(ConceptId, ConceptId)>,
pub mended_links: Vec<(ConceptId, String)>,
pub broken_links: Vec<(ConceptId, String)>,
}Expand description
A bundle-level diff.
Build one with bundle_diff and either read its fields directly or print
it with its Display implementation, which is what
okf diff uses.
Fields§
§added: Vec<ConceptId>Concepts present in the second bundle and absent from the first, after subtracting renames.
removed: Vec<ConceptId>Concepts present in the first bundle and absent from the second, after subtracting renames.
renamed: Vec<Rename>Concepts whose id changed but whose content hash did not.
content: Vec<ConceptId>Concepts present in both bundles whose body content changed.
frontmatter: Vec<FrontmatterChange>Per-concept frontmatter key changes, for ids present in both bundles.
trust: Vec<TrustChange>Per-concept trust-tier/status changes, for ids present in both bundles.
added_links: Vec<(ConceptId, ConceptId)>Resolved internal links present in the second bundle but not the first,
as (source id, target id) pairs. Only links to existing concepts are
included; broken-link state transitions are reported separately below.
removed_links: Vec<(ConceptId, ConceptId)>Resolved internal links present in the first bundle but not the second,
as (source id, target id) pairs. Only links to existing concepts are
included; broken-link state transitions are reported separately below.
mended_links: Vec<(ConceptId, String)>Links broken in the first bundle that are resolved in the second, as
(source id, raw target as written).
broken_links: Vec<(ConceptId, String)>Links resolved in the first bundle that are broken in the second, as
(source id, raw target as written).
Implementations§
Trait Implementations§
Source§impl Clone for BundleDiff
impl Clone for BundleDiff
Source§fn clone(&self) -> BundleDiff
fn clone(&self) -> BundleDiff
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more