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§
Trait Implementations§
Source§impl Debug for WechatPayRequest
impl Debug for WechatPayRequest
Source§impl<'de> Deserialize<'de> for WechatPayRequest
impl<'de> Deserialize<'de> for WechatPayRequest
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 WechatPayRequest
impl RefUnwindSafe for WechatPayRequest
impl Send for WechatPayRequest
impl Sync for WechatPayRequest
impl Unpin for WechatPayRequest
impl UnwindSafe for WechatPayRequest
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