pub enum PayError {
Config(String),
MissingField(String),
RequestFailed(String),
HttpTransport(String),
Serialize(String),
VerifyFailed(String),
RefundFailed(String),
QueryFailed(String),
}Expand description
Pay 错误
Variants§
Config(String)
配置错误
MissingField(String)
缺少必填字段
RequestFailed(String)
请求失败
HttpTransport(String)
HTTP 传输失败
Serialize(String)
序列化失败
VerifyFailed(String)
签名验证失败
RefundFailed(String)
退款失败
QueryFailed(String)
查询失败
Trait Implementations§
Source§impl Error for PayError
impl Error for PayError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PayError
impl RefUnwindSafe for PayError
impl Send for PayError
impl Sync for PayError
impl Unpin for PayError
impl UnsafeUnpin for PayError
impl UnwindSafe for PayError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more