(&self)
| 149 | |
| 150 | impl ApiError { |
| 151 | pub fn api_error_kind(&self) -> Option<&obscuravpn_api::cmd::ApiErrorKind> { |
| 152 | if let Self::ApiClient(ClientError::ApiError(error)) = self { |
| 153 | return Some(&error.body.error); |
| 154 | } |
| 155 | None |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | #[derive(Debug, Error)] |