pub struct WechatPayResponse {Show 13 fields
pub appid: Option<String>,
pub trade_type: String,
pub mch_id: String,
pub openid: String,
pub sign: String,
pub nonce_str: Option<String>,
pub prepay_id: Option<String>,
pub result_code: String,
pub code_url: Option<String>,
pub err_code: Option<String>,
pub err_code_des: Option<String>,
pub mweb_url: Option<String>,
pub transaction_id: Option<String>,
}Fields§
§appid: Option<String>§trade_type: String交易类型
mch_id: String商户号
openid: String用户号
sign: String签名
nonce_str: Option<String>加密字符串
prepay_id: Option<String>预支付交易会话标识
result_code: String业务结果
code_url: Option<String>trade_type为NATIVE时有返回,用于生成二维码,展示给用户进行扫码支付
err_code: Option<String>错误代码
err_code_des: Option<String>错误代码描述
mweb_url: Option<String>支付跳转链接
transaction_id: Option<String>Trait Implementations§
Source§impl Debug for WechatPayResponse
impl Debug for WechatPayResponse
Source§impl<'de> Deserialize<'de> for WechatPayResponse
impl<'de> Deserialize<'de> for WechatPayResponse
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
Auto Trait Implementations§
impl Freeze for WechatPayResponse
impl RefUnwindSafe for WechatPayResponse
impl Send for WechatPayResponse
impl Sync for WechatPayResponse
impl Unpin for WechatPayResponse
impl UnwindSafe for WechatPayResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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