Extract data from a successful response
(&self)
| 344 | |
| 345 | /// Extract data from a successful response |
| 346 | pub fn data(&self) -> Option<&Value> { |
| 347 | match self { |
| 348 | Self::Success { data } => data.as_ref(), |
| 349 | _ => None, |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | /// Extract error message from an error response |
| 354 | pub fn error_message(&self) -> Option<&str> { |
no outgoing calls
no test coverage detected