pub struct GoodsDetail {
pub merchant_goods_id: String,
pub wechatpay_goods_id: Option<String>,
pub goods_name: Option<String>,
pub quantity: i32,
pub unit_price: i32,
pub refund_amount: Option<i32>,
pub refund_quantity: Option<i32>,
}Fields§
§merchant_goods_id: String商户侧商品编码
wechatpay_goods_id: Option<String>微信侧商品编码
goods_name: Option<String>商品名称
quantity: i32商品数量
unit_price: i32商品单价
refund_amount: Option<i32>商品退款金额
refund_quantity: Option<i32>商品退货数量
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<'de> Deserialize<'de> for GoodsDetail
impl<'de> Deserialize<'de> for GoodsDetail
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 GoodsDetail
impl RefUnwindSafe for GoodsDetail
impl Send for GoodsDetail
impl Sync for GoodsDetail
impl Unpin 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