aliyun-error 0.0.1

阿里云统一错误处理
Documentation
1
2
3
4
5
6
7
8
9
use crate::{AliError, AliErrorKind};
use reqwest::Error;

impl From<Error> for AliError {
    fn from(value: Error) -> Self {
        let kind = AliErrorKind::Network { message: value.to_string() };
        Self { kind: Box::new(kind) }
    }
}