hyperlane_plugin_env/struct.rs
1use super::*;
2
3/// Secret string wrapper that always renders `[REDACTED]` in `Debug` and `Display`.
4#[derive(Clone, Eq, PartialEq)]
5pub struct SecretValue {
6 /// Raw secret text accessible only via [`SecretValue::expose`].
7 pub(crate) inner: String,
8}
9
10/// Layered environment configuration loader and `HYPERLANE_*` [`ServerConfig`] builder.
11#[derive(Clone, Debug, Default, Eq, PartialEq)]
12pub struct EnvPlugin {
13 /// Optional prefix prepended automatically during key lookups (for example `"HYPERLANE_"`).
14 pub(crate) prefix: String,
15 /// Layered key-value store (`.env` defaults merged with OS env and explicit overrides).
16 pub(crate) values: BTreeMap<String, String>,
17}