The canonical string form stored in the object.
(self)
| 29 | impl ViewScopeLabel { |
| 30 | /// The canonical string form stored in the object. |
| 31 | pub fn as_str(self) -> &'static str { |
| 32 | match self { |
| 33 | ViewScopeLabel::Shared => "shared", |
| 34 | ViewScopeLabel::Draft => "draft", |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | /// Parse from the object's `scope` string. Unknown values are treated as |
| 39 | /// `Shared` — the safe default (a root that inherits nothing). |
no outgoing calls
no test coverage detected