diff options
| author | Daniel Schadt <kingdread@gmx.de> | 2026-08-17 20:28:10 +0200 |
|---|---|---|
| committer | Daniel Schadt <kingdread@gmx.de> | 2026-08-17 20:28:10 +0200 |
| commit | 99db2d1e499c3ca0b113e50ddd46f46f52c9e28b (patch) | |
| tree | ae9c15922ebaf08005661ff310af898ac1347295 | |
| parent | ce81087037956f2a33f550585f32d0070039ade0 (diff) | |
| download | hittekaart-99db2d1e499c3ca0b113e50ddd46f46f52c9e28b.tar.gz hittekaart-99db2d1e499c3ca0b113e50ddd46f46f52c9e28b.tar.bz2 hittekaart-99db2d1e499c3ca0b113e50ddd46f46f52c9e28b.zip | |
also add getters for name/description
| -rw-r--r-- | hittekaart/src/storage.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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 { |
