sealed

Check whether stored values satisfy the encryption policy

Rust primitives

dotenvx_primitives::sealed

Usage

Returns true when stored values are ciphertext, blank, secret references, or otherwise allowed plaintext under the storage rules and _PLAIN convention. Checks all duplicate assignments. Secret-reference prefixes are recognized but not resolved. Pass Some(&storage_policy) to apply per-file storage rules.


use dotenvx_primitives::sealed;

assert!(sealed("HELLO=encrypted:abc123", None));
assert!(!sealed("HELLO=World", None));

markdown