(config: HttpConfig)
| 322 | } |
| 323 | |
| 324 | #[derive(Clone, Debug, PartialEq, Eq)] |
| 325 | pub struct HttpSubmitError { |
| 326 | pub id: HttpID, |
| 327 | pub url: String, |
| 328 | pub kind: HttpSubmitErrorKind, |
| 329 | pub message: String, |
| 330 | } |
| 331 | |
| 332 | impl HttpSubmitError { |
| 333 | fn new(id: HttpID, url: String, kind: HttpSubmitErrorKind, message: impl Into<String>) -> Self { |
| 334 | Self { |
| 335 | id, |
| 336 | url, |
| 337 | kind, |
| 338 | message: message.into(), |
| 339 | } |
| 340 | } |
no test coverage detected