pub struct DecryptNotifyResult {
pub appid: String,
pub mchid: String,
pub out_trade_no: String,
pub transaction_id: String,
pub trade_type: String,
pub trade_state: String,
pub trade_state_desc: String,
pub bank_type: String,
pub attach: Option<String>,
pub success_time: String,
pub payer: Payer,
pub amount: Option<Amount>,
}
Fields§
§appid: String
直连商户申请的公众号或移动应用appid
mchid: String
商户号
out_trade_no: String
商户订单号
transaction_id: String
微信支付订单号
trade_type: String
交易类型
交易类型,枚举值: JSAPI:公众号支付 NATIVE:扫码支付 APP:APP支付 MICROPAY:付款码支付 MWEB:H5支付 FACEPAY:刷脸支付 示例值:MICROPAY
trade_state: String
字段名:交易状态 变量名:trade_state 是否必填:是 类型:string[1,32] 描述: 交易状态,枚举值: SUCCESS:支付成功 REFUND:转入退款 NOTPAY:未支付 CLOSED:已关闭 REVOKED:已撤销(付款码支付) USERPAYING:用户支付中(付款码支付) PAYERROR:支付失败(其他原因,如银行返回失败) 示例值:SUCCESS
trade_state_desc: String
交易状态描述
bank_type: String
银行类型,采用字符串类型的银行标识。 银行标识请参考《银行类型对照表》
attach: Option<String>
附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用
success_time: String
支付完成时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。
payer: Payer
支付者
amount: Option<Amount>
订单金额
Trait Implementations§
Source§impl Clone for DecryptNotifyResult
impl Clone for DecryptNotifyResult
Source§fn clone(&self) -> DecryptNotifyResult
fn clone(&self) -> DecryptNotifyResult
Returns a duplicate of the value. Read more
1.0.0 · 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 DecryptNotifyResult
impl Debug for DecryptNotifyResult
Source§impl<'de> Deserialize<'de> for DecryptNotifyResult
impl<'de> Deserialize<'de> for DecryptNotifyResult
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 DecryptNotifyResult
impl RefUnwindSafe for DecryptNotifyResult
impl Send for DecryptNotifyResult
impl Sync for DecryptNotifyResult
impl Unpin for DecryptNotifyResult
impl UnwindSafe for DecryptNotifyResult
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