Skip to main content

load_intent_config

Function load_intent_config 

Source
pub fn load_intent_config(
    car_dir: impl AsRef<Path>,
) -> Result<Option<IntentGateConfig>, IntentLoadError>
Expand description

Load .car/intent.json. Absent file ⇒ Ok(None) (the gate is opt-in); a present-but-malformed file is a loud error, never a silently-ungated session (the strict-and-loud A2 loader stance).