Skip to main content

load

Function load 

Source
pub fn load(root: &Path) -> Result<Option<UsersFile>>
Expand description

Load <root>/users.json. Returns Ok(None) when the file is absent (the v3a–v3c “no auth wired up, use env-var fallback” regime); Ok(Some(_)) when present, even if the user list is empty (an empty file is “auth wired up, nobody allowed”).