Skip to main content

with_acquisition

Function with_acquisition 

Source
pub fn with_acquisition(
    target: &Path,
    answer: &Acquisition,
) -> Result<(String, bool), RkError>
Expand description

The configuration text with the acquisition answer recorded, and whether that changes anything.

An existing file keeps every byte but the acquisition table. A target with no file gets one holding the schema and the answer alone: every other table takes its compiled default, and the landing that follows rewrites the file rather than replacing it, so the answer survives it.

ยงErrors

Returns a config-invalid refusal for a file that does not parse, and preserves I/O errors.