summaryrefslogtreecommitdiff
path: root/src/genmeta.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/genmeta.rs')
-rw-r--r--src/genmeta.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/genmeta.rs b/src/genmeta.rs
index 2ce4c4c..d5b14a3 100644
--- a/src/genmeta.rs
+++ b/src/genmeta.rs
@@ -26,6 +26,11 @@ impl GenerationMeta {
pub fn schema_version(&self) -> SchemaVersion {
self.schema_version
}
+
+ /// Get a value corresponding to a key in the meta table.
+ pub fn get(&self, key: &str) -> Option<&String> {
+ self.extras.get(key)
+ }
}
fn metastr(map: &mut HashMap<String, String>, key: &str) -> Result<String, GenerationMetaError> {