Get a human-readable label for the view scope.
(&self)
| 50 | |
| 51 | /// Get a human-readable label for the view scope. |
| 52 | pub fn kind_label(&self) -> &str { |
| 53 | match self.scope { |
| 54 | ViewScope::Shared => "shared", |
| 55 | ViewScope::Draft => "draft", |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /// Get the parent name for display, or "—" if root. |
| 60 | pub fn parent_display(&self) -> &str { |