aliyun_error/
lib.rs

1#![deny(missing_debug_implementations, missing_copy_implementations)]
2#![warn(missing_docs, rustdoc::missing_crate_level_docs)]
3#![doc = include_str!("../readme.md")]
4#![doc(html_logo_url = "https://raw.githubusercontent.com/oovm/shape-rs/dev/projects/images/Trapezohedron.svg")]
5#![doc(html_favicon_url = "https://raw.githubusercontent.com/oovm/shape-rs/dev/projects/images/Trapezohedron.svg")]
6
7mod convert;
8
9mod display;
10
11/// 常用第三方库
12pub mod third_party {
13    #[cfg(feature = "reqwest")]
14    pub use reqwest;
15}
16
17/// The result type of this crate.
18pub type Result<T> = std::result::Result<T, AliError>;
19
20/// A boxed error kind, wrapping an [AliErrorKind].
21#[derive(Clone)]
22pub struct AliError {
23    kind: Box<AliErrorKind>,
24}
25
26/// The kind of [AliError].
27#[derive(Debug, Clone)]
28pub enum AliErrorKind {
29    /// An unknown error.
30    UnknownError,
31    Network {
32        message: String,
33    },
34}