pub struct WxError {
pub error_code: i32,
pub error_msg: Option<String>,
pub error_msg_en: Option<String>,
pub json: Option<String>,
}Expand description
Fields§
§error_code: i32微信错误代码
error_msg: Option<String>错误信息(如果可以翻译为中文,就为中文)
error_msg_en: Option<String>微信接口返回的错误原始信息(英文)
json: Option<String>微信接口原始响应报文(仅本地使用,不参与序列化)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WxError
impl<'de> Deserialize<'de> for WxError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WxError
impl StructuralPartialEq for WxError
Auto Trait Implementations§
impl Freeze for WxError
impl RefUnwindSafe for WxError
impl Send for WxError
impl Sync for WxError
impl Unpin for WxError
impl UnsafeUnpin for WxError
impl UnwindSafe for WxError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.