pub struct PddGoodsDetailFullRequest {Show 14 fields
pub pdd_app_key: String,
pub pdd_app_secret: String,
pub pid: String,
pub keyword: String,
pub custom_parameters: Option<String>,
pub cat_id: Option<String>,
pub activity_tags: Option<String>,
pub block_cat_packages: Option<String>,
pub block_cats: Option<String>,
pub is_brand_goods: Option<bool>,
pub merchant_type: Option<u32>,
pub sort_type: Option<u32>,
pub use_customized: Option<bool>,
pub with_coupon: Option<bool>,
}Expand description
Fields§
§pdd_app_key: String拼多多开放平台应用的 appkey
pdd_app_secret: String拼多多开放平台应用的 appsecret
pid: String拼多多平台的推广位
keyword: String商品关键词,支持 goods_id、拼多多商品链接、推广长链和推广短链
custom_parameters: Option<String>自定义参数 (可选,用于返利场景)
cat_id: Option<String>商品类目 ID (可选)
活动商品标记数组 (可选) 例: [4,7],4-秒杀,7-百亿补贴,10851-千万补贴
block_cat_packages: Option<String>屏蔽商品类目包 (可选) 1-拼多多小程序屏蔽的类目&关键词,2-虚拟类目,3-医疗器械等
block_cats: Option<String>自定义屏蔽类目 ID (可选,最多 20 个)
is_brand_goods: Option<bool>是否为品牌商品 (可选)
merchant_type: Option<u32>店铺类型 (可选) 1-个人,2-企业,3-旗舰店,4-专卖店,5-专营店,6-普通店
sort_type: Option<u32>排序方式 (可选) 0-综合排序,1-按佣金比率升序,2-按佣金比例降序,3-按价格升序,4-按价格降序等
use_customized: Option<bool>是否使用个性化推荐 (可选,默认 true)
with_coupon: Option<bool>是否只返回有优惠券的商品 (可选)
Implementations§
Source§impl PddGoodsDetailFullRequest
impl PddGoodsDetailFullRequest
Sourcepub fn new(
pdd_app_key: impl Into<String>,
pdd_app_secret: impl Into<String>,
pid: impl Into<String>,
keyword: impl Into<String>,
) -> Self
pub fn new( pdd_app_key: impl Into<String>, pdd_app_secret: impl Into<String>, pid: impl Into<String>, keyword: impl Into<String>, ) -> Self
创建新的拼多多商品详情请求 (详版)
Sourcepub fn custom_parameters(self, custom_parameters: impl Into<String>) -> Self
pub fn custom_parameters(self, custom_parameters: impl Into<String>) -> Self
设置自定义参数
设置活动商品标记
Sourcepub fn block_cat_packages(self, block_cat_packages: impl Into<String>) -> Self
pub fn block_cat_packages(self, block_cat_packages: impl Into<String>) -> Self
设置屏蔽商品类目包
Sourcepub fn block_cats(self, block_cats: impl Into<String>) -> Self
pub fn block_cats(self, block_cats: impl Into<String>) -> Self
设置自定义屏蔽类目
Sourcepub fn is_brand_goods(self, is_brand_goods: bool) -> Self
pub fn is_brand_goods(self, is_brand_goods: bool) -> Self
设置是否为品牌商品
Sourcepub fn merchant_type(self, merchant_type: u32) -> Self
pub fn merchant_type(self, merchant_type: u32) -> Self
设置店铺类型
Sourcepub fn use_customized(self, use_customized: bool) -> Self
pub fn use_customized(self, use_customized: bool) -> Self
设置是否使用个性化推荐
Sourcepub fn with_coupon(self, with_coupon: bool) -> Self
pub fn with_coupon(self, with_coupon: bool) -> Self
设置是否只返回有优惠券的商品
Trait Implementations§
Source§impl Clone for PddGoodsDetailFullRequest
impl Clone for PddGoodsDetailFullRequest
Source§fn clone(&self) -> PddGoodsDetailFullRequest
fn clone(&self) -> PddGoodsDetailFullRequest
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 PddGoodsDetailFullRequest
impl Debug for PddGoodsDetailFullRequest
Auto Trait Implementations§
impl Freeze for PddGoodsDetailFullRequest
impl RefUnwindSafe for PddGoodsDetailFullRequest
impl Send for PddGoodsDetailFullRequest
impl Sync for PddGoodsDetailFullRequest
impl Unpin for PddGoodsDetailFullRequest
impl UnwindSafe for PddGoodsDetailFullRequest
Blanket Implementations§
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