pub struct PddGoodsEditGoodsCommit {
Show 56 fields pub auto_fill_spu_property: Option<bool>, pub bad_fruit_claim: Option<i32>, pub buy_limit: Option<i64>, pub carousel_gallery: Option<Vec<String>>, pub carousel_video: Option<Vec<CarouselVideo>>, pub carousel_video_url: Option<String>, pub cat_id: Option<i64>, pub cost_template_id: Option<i64>, pub country_id: Option<i32>, pub customer_num: Option<i64>, pub customs: Option<String>, pub delivery_one_day: Option<i32>, pub delivery_type: Option<i32>, pub detail_gallery: Option<Vec<String>>, pub elec_goods_attributes: Option<ElecGoodsAttributes>, pub goods_desc: Option<String>, pub goods_name: Option<String>, pub goods_properties: Option<Vec<GoodsProperties>>, pub goods_trade_attr: Option<GoodsTradeAttr>, pub goods_travel_attr: Option<GoodsTravelAttr>, pub goods_type: Option<i32>, pub image_url: Option<String>, pub invoice_status: Option<i32>, pub is_customs: Option<bool>, pub is_folt: Option<bool>, pub is_group_pre_sale: Option<i32>, pub is_pre_sale: Option<bool>, pub is_refundable: Option<bool>, pub is_sku_pre_sale: Option<i32>, pub lack_of_weight_claim: Option<i32>, pub local_service_id_list: Option<Vec<i32>>, pub mai_jia_zi_ti: Option<String>, pub market_price: Option<i64>, pub order_limit: Option<i64>, pub origin_country_id: Option<i32>, pub out_goods_id: Option<String>, pub out_source_goods_id: Option<String>, pub out_source_type: Option<i32>, pub oversea_goods: Option<OverseaGoods>, pub oversea_type: Option<i32>, pub pre_sale_time: Option<i64>, pub quan_guo_lian_bao: Option<i32>, pub second_hand: Option<bool>, pub shang_men_an_zhuang: Option<String>, pub shipment_limit_second: Option<i64>, pub shop_group_id: Option<i64>, pub size_spec_id: Option<i64>, pub sku_list: Option<Vec<SkuList>>, pub sku_type: Option<i32>, pub song_huo_an_zhuang: Option<String>, pub song_huo_ru_hu: Option<String>, pub tiny_name: Option<String>, pub two_pieces_discount: Option<i32>, pub warehouse: Option<String>, pub warm_tips: Option<String>, pub zhi_huan_bu_xiu: Option<i32>,
}
Expand description

新增或编辑草稿

Fields§

§auto_fill_spu_property: Option<bool>

是否自动补充标品属性

§bad_fruit_claim: Option<i32>

坏果包赔

§buy_limit: Option<i64>

限购次数

§carousel_gallery: Option<Vec<String>>

商品轮播图,按次序上传,图片格式支持JPEG/JPG/PNG, 图片尺寸长宽比1:1且尺寸不低于480px,图片大小最高1MB

§carousel_video: Option<Vec<CarouselVideo>>

商品视频

§carousel_video_url: Option<String>

轮播视频

§cat_id: Option<i64>

叶子类目ID

§cost_template_id: Option<i64>

物流运费模板ID,可使用pdd.logistics.template.get获取

§country_id: Option<i32>

地区/国家ID,0-中国,暂时只传0(普通商品)

§customer_num: Option<i64>

团购人数

§customs: Option<String>

海关名称,只在goods_type为直供商品时有效(现阶段暂不支持)

§delivery_one_day: Option<i32>

是否当日发货,0 否,1 是

§delivery_type: Option<i32>

发货方式。0:无物流发货;1:有物流发货。

§detail_gallery: Option<Vec<String>>

商品详情图:a. 尺寸要求宽度处于480~1200px之间,高度0-1500px之间b. 大小1M以内c. 数量限制在20张之间d. 图片格式仅支持JPG,PNG格式e. 点击上传时,支持批量上传详情图

§elec_goods_attributes: Option<ElecGoodsAttributes>

卡券类商品属性

§goods_desc: Option<String>

商品描述, 字数限制:20-500,例如,新包装,保证产品的口感和新鲜度。单颗独立小包装,双重营养,1斤家庭分享装,更实惠新疆一级骏枣夹核桃仁。

§goods_name: Option<String>

商品标题,例如,新疆特产 红满疆枣夹核桃500g

§goods_properties: Option<Vec<GoodsProperties>>

商品属性列表

§goods_trade_attr: Option<GoodsTradeAttr>

日历商品交易相关信息

§goods_travel_attr: Option<GoodsTravelAttr>

商品出行信息

§goods_type: Option<i32>

1-国内普通商品,2-一般贸易,3-保税仓BBC直供,4-海外BC直邮 ,5-流量 ,6-话费 ,7-优惠券 ,8-QQ充值 ,9-加油卡,15-商家卡券,18-海外CC行邮 19-平台卡券

§image_url: Option<String>

商品主图,请参考拼多多首页大图,如果商品参加部分活动则必填,否则无法参加活动a. 尺寸750 x 352pxb. 大小100k以内c. 图片格式仅支持JPG,PNG格式d. 图片背景应以纯白为主, 商品图案居中显示e. 图片不可以添加任何品牌相关文字或logo

§invoice_status: Option<i32>

是否支持正品发票;0-不支持、1-支持

§is_customs: Option<bool>

是否需要上报海关,现阶段入参默认false,入参true会失败

§is_folt: Option<bool>

是否支持假一赔十,false-不支持,true-支持

§is_group_pre_sale: Option<i32>

是否成团预售。0:不是;1:是。

§is_pre_sale: Option<bool>

是否预售,true-预售商品,false-非预售商品

§is_refundable: Option<bool>

是否7天无理由退换货,true-支持,false-不支持

§is_sku_pre_sale: Option<i32>

是否sku预售,1:是,0:否

§lack_of_weight_claim: Option<i32>

缺重包退

§local_service_id_list: Option<Vec<i32>>

本地服务id

§mai_jia_zi_ti: Option<String>

买家自提模版id

§market_price: Option<i64>

参考价格,单位为分

§order_limit: Option<i64>

单次限量

§origin_country_id: Option<i32>

原产地id,是指海淘商品的生产地址,仅在goods type=3/4的时候必填,可以通过pdd.goods.country.get获取

§out_goods_id: Option<String>

商品goods外部编码

§out_source_goods_id: Option<String>

第三方商品Id

§out_source_type: Option<i32>

第三方商品来源

§oversea_goods: Option<OverseaGoods>

{“consumption_tax_rate”: 1,“value_added_tax_rate”: 9,“hs_code”: “2200”,“customs_broker”: “sss”,“customs_declaration_method”: 1,“bonded_warehouse”: “sss”,“bonded_warehouse_key”: “pp”}

§oversea_type: Option<i32>

oversea_type

§pre_sale_time: Option<i64>

预售时间,is_pre_sale为1时必传,UNIX时间戳

§quan_guo_lian_bao: Option<i32>

0:不支持全国联保;1:支持全国联保

§second_hand: Option<bool>

是否二手商品,true -二手商品 ,false-全新商品

§shang_men_an_zhuang: Option<String>

上门安装模版id

§shipment_limit_second: Option<i64>

承诺发货时间( 秒),48小时或24小时,is_pre_sale为1时不必传

§shop_group_id: Option<i64>

门店组id

§size_spec_id: Option<i64>

尺码表id

§sku_list: Option<Vec<SkuList>>

sku对象列表,实例:[{“is_onsale”: 1,“limit_quantity”: 999,“price”: “2200”,“weight”: 1000,“multi_price”: “1900”,“thumb_url”: “http://t06img.yangkeduo.com/images/2018-04-15/ced035033b5d40b589140af882621c03.jpg”,“out_sku_sn”: “L”,“quantity”: 100,“spec_id_list”: “[25]”,“oversea_sku”: {“measurement_code”: “计量单位编码”,“taxation”: “税费”,“specifications”: “规格”}}]

§sku_type: Option<i32>

库存方式(0:普通型,1:日历型)

§song_huo_an_zhuang: Option<String>

送货入户并安装模版id

§song_huo_ru_hu: Option<String>

送货入户模版id

§tiny_name: Option<String>

商品短标题(仅在部分活动中生效),字数限制为4-20字

§two_pieces_discount: Option<i32>

满2件折扣,可选范围0-100, 0表示取消,95表示95折,设置需先查询规则接口获取实际可填范围

§warehouse: Option<String>

保税仓,只在goods_type为直供商品时有效(现阶段暂不支持)

§warm_tips: Option<String>

水果类目温馨提示,只在水果类目商品才生效, 字数限制:商品描述goods_desc+温馨提示总计不超过500字。

§zhi_huan_bu_xiu: Option<i32>

只换不修的天数,目前只支持0和365

Trait Implementations§

source§

impl Debug for PddGoodsEditGoodsCommit

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PddGoodsEditGoodsCommit

source§

fn default() -> PddGoodsEditGoodsCommit

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for PddGoodsEditGoodsCommit

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Request for PddGoodsEditGoodsCommit

source§

impl Serialize for PddGoodsEditGoodsCommit

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,