Skip to main content

is_set

Function is_set 

Source
pub fn is_set(spec: &LoadSpec<'_>, path: &str) -> Result<bool, Error>
Expand description

Whether anything supplies path.

Distinguishes “absent” from “present but falsy”, which #[serde(default)] cannot.

§Errors

If a source cannot be read or parsed — the same failures as load.