Skip to main content

is_set

Function is_set 

Source
pub fn is_set(file: Option<&Path>, inline: Option<&str>) -> bool
Expand description

Whether a secret is configured at all.

Answered without opening the file, so an unauthenticated caller cannot drive filesystem work. A configured file which turns out to be unreadable or blank still counts as set here, and only resolve discovers otherwise.