pub fn set(
path: &Path,
key: &str,
environment: &str,
value: &str,
) -> Result<(), SecretError>Expand description
Stores value under key for environment, replacing any previous
value in that slot and leaving every other environment alone.
ยงErrors
SecretError::InvalidKey: the key is outside the grammar.SecretError::InvalidEnvironment: the environment name is outside the grammar.SecretError::ValueTooLong: the value exceedsMAX_VALUE_BYTES.SecretError::FutureVersion: the store on disk is newer than this build understands. Nothing is written.SecretError::Decode: the existing file could not be parsed.SecretError::Io: the lock, the temp file, thefsyncor therenamefailed.