Skip to main content

load_brand_file

Function load_brand_file 

Source
pub fn load_brand_file(path: &Path) -> Result<BrandContract, String>
Expand description

Load a brand contract from a KDL config file.

A missing file is not an error — it yields BrandContract::default. A present-but-unreadable file, or a malformed brand block, returns a human-facing error message. A file that has no brand node also yields the default (the file may contain only a diagnostics block).