From 99db2d1e499c3ca0b113e50ddd46f46f52c9e28b Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 17 Aug 2026 20:28:10 +0200 Subject: also add getters for name/description --- hittekaart/src/storage.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hittekaart/src/storage.rs b/hittekaart/src/storage.rs index 5c2d453..af743a9 100644 --- a/hittekaart/src/storage.rs +++ b/hittekaart/src/storage.rs @@ -293,6 +293,11 @@ impl MbTiles { } } + /// Returns the current name of the tile store. + pub fn name(&self) -> &str { + &self.name + } + /// Set (or unset) the description of this MBTiles tile store. /// /// By default, no description will be written. If a description has been set, it can be @@ -303,6 +308,11 @@ impl MbTiles { .. self } } + + /// Returns the current description of the tile store. + pub fn description(&self) -> Option<&str> { + self.description.as_deref() + } } impl Storage for MbTiles { -- cgit v1.2.3