Get a human-readable label for the view scope.
(&self)
| 58 | |
| 59 | /// Get a human-readable label for the view scope. |
| 60 | pub fn kind_label(&self) -> &str { |
| 61 | match self.scope { |
| 62 | ViewScope::Shared => "shared", |
| 63 | ViewScope::Draft => "draft", |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | /// Get the parent name for display, or "—" if root. |
| 68 | pub fn parent_display(&self) -> &str { |