rust_pay_wf 0.5.0

Rust 微信、支付宝、银联支付SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;
#[derive(Error, Debug)]
pub enum PayError {
    #[error("http: {0}")]
    Http(#[from] reqwest::Error),
    #[error("json: {0}")]
    Json(#[from] serde_json::Error),
    #[error("io: {0}")]
    Io(#[from] std::io::Error),
    #[error("crypto: {0}")]
    Crypto(String),
    #[error("other: {0}")]
    Other(String),
}