pub struct SecretRefRow {
pub pack: String,
pub source_path: String,
pub line: usize,
pub reference: String,
pub scheme: String,
pub provider_enabled: bool,
}Expand description
One occurrence of a secret(...) call in a template source.
Fields§
§pack: String§source_path: StringPack-relative path of the template source (e.g.
config.toml.tmpl, nested/db.toml.tmpl).
line: usize1-indexed line number where the secret(...) call begins
in the template source.
reference: StringThe full reference passed to secret(...), with scheme
prefix (e.g. pass:test/db_password,
op://Personal/GitHub/token).
scheme: StringThe scheme half (pass, op, bw, …) — the part
before the first : of the reference. Empty if the
reference is malformed (we still surface the row so the
user can see the broken call site).
provider_enabled: boolTrue iff a provider for this scheme is currently enabled
in [secret.providers.*]. Lets the renderer flag
references that would fail at render time today, so the
user can decide whether to enable a provider or remove
the call.
Trait Implementations§
Source§impl Clone for SecretRefRow
impl Clone for SecretRefRow
Source§fn clone(&self) -> SecretRefRow
fn clone(&self) -> SecretRefRow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more