Skip to main content

pick

Function pick 

Source
pub fn pick(
    secret: Zeroizing<String>,
    key: Option<&str>,
) -> Result<Zeroizing<String>, String>
Expand description

The value to keep: the whole secret, or the string or number at key in a JSON one. What is parsed and not kept is wiped before it is dropped.