summaryrefslogtreecommitdiffstats
path: root/src/config/import.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 23:21:01 +0100
committertv <tv@krebsco.de>2026-10-26 23:21:01 +0100
commit813f9c57d227a686c6fb08137a2b6b26e9986ef4 (patch)
tree774e8fb9f86d608fe78f40981a6abf6f2ccdd032 /src/config/import.rs
parent932efcc8db81eda6f1d91fda74d002c0aecd6629 (diff)
show interpolated values in GET /admin/config
Diffstat (limited to 'src/config/import.rs')
-rw-r--r--src/config/import.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config/import.rs b/src/config/import.rs
index a5b2a63..9f315f3 100644
--- a/src/config/import.rs
+++ b/src/config/import.rs
@@ -185,6 +185,12 @@ impl Importer {
}
}
+ /// Whether this is text with placeholders (`interpolated`) rather than an importer
+ /// of the whole value: its result is shown, the importers' are not.
+ pub(crate) fn is_interpolation(&self) -> bool {
+ matches!(self.source, Source::Template { .. })
+ }
+
/// The imported content: text, or JSON.
pub(crate) fn fetch(&self) -> Result<Imported> {
let text = match &self.source {