Skip to main content

validate

Function validate 

Source
pub fn validate(
    fields: &BTreeMap<String, String>,
    has_value: bool,
) -> Result<(), String>
Expand description

Whether the link’s fields in fields are ones the Vault keeps, for an entry that holds a value (has_value) or none. A linked entry names its place and holds nothing; who reads a key and where else it is kept may be said of any entry.