pub struct WxErrorError {
pub error: WxError,
}Expand description
微信接口调用异常,携带错误码对象。
对应 Java checked WxErrorException;在 Rust 中作为 crate::error::WxErrorException 枚举的
核心变体使用,由各 Service 方法以 Result<T, WxErrorException> 返回。
Fields§
§error: WxError微信错误对象
Implementations§
Trait Implementations§
Source§impl Clone for WxErrorError
impl Clone for WxErrorError
Source§fn clone(&self) -> WxErrorError
fn clone(&self) -> WxErrorError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WxErrorError
impl Debug for WxErrorError
Source§impl Display for WxErrorError
impl Display for WxErrorError
Source§impl Error for WxErrorError
impl Error for WxErrorError
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()
Source§impl From<WxErrorError> for WxErrorException
impl From<WxErrorError> for WxErrorException
Source§fn from(source: WxErrorError) -> Self
fn from(source: WxErrorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WxErrorError
impl RefUnwindSafe for WxErrorError
impl Send for WxErrorError
impl Sync for WxErrorError
impl Unpin for WxErrorError
impl UnsafeUnpin for WxErrorError
impl UnwindSafe for WxErrorError
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