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