(&self)
| 73 | |
| 74 | #[must_use] |
| 75 | pub fn as_object(&self) -> Option<&BTreeMap<String, JsonValue>> { |
| 76 | match self { |
| 77 | Self::Object(value) => Some(value), |
| 78 | _ => None, |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | #[must_use] |
| 83 | pub fn as_array(&self) -> Option<&[JsonValue]> { |
no outgoing calls
no test coverage detected