pub struct GoodsDetail {
pub merchant_goods_id: String,
pub quantity: i32,
pub unit_price: i32,
pub wechatpay_goods_id: Option<String>,
pub goods_name: Option<String>,
}Fields§
§merchant_goods_id: String【商户侧商品编码】 由半角的大小写字母、数字、中划线、下划线中的一种或几种组成。
quantity: i32【商品数量】 用户购买的数量
unit_price: i32【商品单价】 单位为:分。如果商户有优惠,需传输商户优惠后的单价(例如:用户对一笔100元的订单使用了商场发的纸质优惠券100-50,则活动商品的单价应为原单价-50)
wechatpay_goods_id: Option<String>【微信支付商品编码】 微信支付定义的统一商品编号(没有可不传)
goods_name: Option<String>【商品名称】 商品的实际名称
Trait Implementations§
Source§impl Clone for GoodsDetail
impl Clone for GoodsDetail
Source§fn clone(&self) -> GoodsDetail
fn clone(&self) -> GoodsDetail
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 GoodsDetail
impl Debug for GoodsDetail
Source§impl Serialize for GoodsDetail
impl Serialize for GoodsDetail
impl Send for GoodsDetail
impl Sync for GoodsDetail
Auto Trait Implementations§
impl Freeze for GoodsDetail
impl RefUnwindSafe for GoodsDetail
impl Unpin for GoodsDetail
impl UnsafeUnpin for GoodsDetail
impl UnwindSafe for GoodsDetail
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