(base: bool, full: bool)
| 90 | |
| 91 | impl PolicyGetView { |
| 92 | pub fn from_flags(base: bool, full: bool) -> Self { |
| 93 | match (base, full) { |
| 94 | (true, _) => Self::Base, |
| 95 | (false, true) => Self::Full, |
| 96 | (false, false) => Self::Metadata, |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | fn includes_policy(self) -> bool { |
| 101 | matches!(self, Self::Base | Self::Full) |
nothing calls this directly
no outgoing calls
no test coverage detected