Get a human-readable label for the view scope.
(&self)
| 41 | |
| 42 | /// Get a human-readable label for the view scope. |
| 43 | pub fn kind_label(&self) -> &str { |
| 44 | match self.scope { |
| 45 | ViewScope::Shared => "shared", |
| 46 | ViewScope::Draft => "draft", |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /// Get the parent name for display, or "—" if root. |
| 51 | pub fn parent_display(&self) -> &str { |