Parse from the object's `scope` string. Unknown values are treated as `Shared` — the safe default (a root that inherits nothing).
(s: &str)
| 38 | /// Parse from the object's `scope` string. Unknown values are treated as |
| 39 | /// `Shared` — the safe default (a root that inherits nothing). |
| 40 | pub fn parse(s: &str) -> Self { |
| 41 | if s == "draft" { |
| 42 | ViewScopeLabel::Draft |
| 43 | } else { |
| 44 | ViewScopeLabel::Shared |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /// An immutable, content-addressed snapshot of a view's state. |
nothing calls this directly
no outgoing calls
no test coverage detected