Skip to main content

preview_add_manual_link

Function preview_add_manual_link 

Source
pub fn preview_add_manual_link(
    source: &str,
    link: &ManualLinkConfig,
) -> Result<ManifestEdit, ManifestEditError>
Expand description

Previews appending one exact manual relationship while preserving unrelated bytes.

ยงErrors

Returns ManifestEditError when the declaration is invalid, duplicates an existing relationship, or the top-level manifest layout cannot be edited safely.