aboutsummaryrefslogtreecommitdiffstats
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
commit8ad1bf93b8b42dc04068f74d8dafb263537d645f (patch)
treeea769f93de7a4a2ba6040c185d9491ef94c88490 /src/config/import.rs
parent9240aa8c54b8e7855c144d1ed8a37cda947e6ae2 (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 {