pub struct WeChatPayRequest {
Show 16 fields pub appid: Option<String>, pub trade_type: TradeType, pub mch_id: String, pub openid: String, pub notify_url: Option<String>, pub body: String, pub detail: String, pub attach: String, pub out_trade_no: String, pub total_fee: String, pub spbill_create_ip: String, pub sign: String, pub nonce_str: Option<String>, pub device_info: String, pub product_id: String, pub auth_code: String,
}

Fields

appid: Option<String>trade_type: TradeType

交易类型

mch_id: String

商户号

openid: String

用户号

notify_url: Option<String>

通知地址

body: String

签名类型 商品描述

detail: String

商品详情

attach: String

附加数据

out_trade_no: String

商户订单号

total_fee: String

标价金额

spbill_create_ip: String

终端IP

sign: String

签名

nonce_str: Option<String>

加密字符串

device_info: String

设备信息

product_id: String

商品ID

auth_code: String

Implementations

Available on crate feature wechat only.
Available on crate feature wechat only.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more