pub struct NativeParams {
pub description: String,
pub out_trade_no: String,
pub amount: AmountInfo,
pub time_expire: Option<String>,
pub attach: Option<String>,
pub goods_tag: Option<String>,
pub support_fapiao: Option<bool>,
pub scene_info: Option<SceneInfo>,
pub settle_info: Option<SettleInfo>,
}
Fields§
§description: String
【商品描述】 商品描述
out_trade_no: String
【通知地址】 异步接收微信支付结果通知的回调地址,通知URL必须为外网可访问的URL,不能携带参数。 公网域名必须为HTTPS,如果是走专线接入,使用专线NAT IP或者私有回调域名可使用HTTP pub notify_url: String, 【商户订单号】 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一。
amount: AmountInfo
【订单金额】 订单金额信息
time_expire: Option<String>
【交易结束时间】 订单失效时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。
attach: Option<String>
【附加数据】 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用,实际情况下只有支付完成状态才会返回该字段。
goods_tag: Option<String>
【订单优惠标记】 商品标记,代金券或立减优惠功能的参数。
support_fapiao: Option<bool>
【电子发票入口开放标识】 传入true时,支付成功消息和支付详情页将出现开票入口。需要在微信支付商户平台或微信公众平台开通电子发票功能,传此字段才可生效。
scene_info: Option<SceneInfo>
【场景信息】 支付场景描述
settle_info: Option<SettleInfo>
【结算信息】 结算信息
Implementations§
Source§impl NativeParams
impl NativeParams
pub fn new<S: AsRef<str>>( description: S, out_trade_no: S, amount: AmountInfo, ) -> Self
Trait Implementations§
Source§impl Clone for NativeParams
impl Clone for NativeParams
Source§fn clone(&self) -> NativeParams
fn clone(&self) -> NativeParams
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 NativeParams
impl Debug for NativeParams
Source§impl ParamsTrait for NativeParams
impl ParamsTrait for NativeParams
Source§impl Serialize for NativeParams
impl Serialize for NativeParams
impl Send for NativeParams
impl Sync for NativeParams
Auto Trait Implementations§
impl Freeze for NativeParams
impl RefUnwindSafe for NativeParams
impl Unpin for NativeParams
impl UnwindSafe for NativeParams
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