wechat_error/convert/
for_reqwest.rs1use crate::{AliError, AliErrorKind};
2use reqwest::Error;
3
4impl From<Error> for AliError {
5 fn from(value: Error) -> Self {
6 let kind = AliErrorKind::NetworkError { message: value.to_string() };
7 Self { kind: Box::new(kind) }
8 }
9}