pub struct JingfenGoodsRequest {
pub elite_id: JdEliteId,
pub page_index: Option<u32>,
pub page_size: Option<u32>,
pub sort_name: Option<JdSortField>,
pub sort: Option<SortDirection>,
pub pid: Option<String>,
pub fields: Option<String>,
pub forbid_types: Option<String>,
}Expand description
Fields§
§elite_id: JdEliteId频道 ID
page_index: Option<u32>页码 (从 1 开始)
page_size: Option<u32>每页数量 (最大 20)
sort_name: Option<JdSortField>排序字段
sort: Option<SortDirection>排序方向
pid: Option<String>联盟子推客身份标识 (可选)
fields: Option<String>支持出参数据筛选 (可选) 逗号分隔,可用: videoInfo, hotWords, similar, documentInfo, skuLabelInfo, promotionLabelInfo
forbid_types: Option<String>禁售类型 (可选) 10-微信京东购物小程序禁售, 11-微信京喜小程序禁售
Implementations§
Source§impl JingfenGoodsRequest
impl JingfenGoodsRequest
Sourcepub fn page_index(self, page_index: u32) -> Self
pub fn page_index(self, page_index: u32) -> Self
设置页码
Sourcepub fn sort_name(self, sort_name: JdSortField) -> Self
pub fn sort_name(self, sort_name: JdSortField) -> Self
设置排序字段
Sourcepub fn sort(self, sort: SortDirection) -> Self
pub fn sort(self, sort: SortDirection) -> Self
设置排序方向
Sourcepub fn forbid_types(self, forbid_types: impl Into<String>) -> Self
pub fn forbid_types(self, forbid_types: impl Into<String>) -> Self
设置禁售类型
Trait Implementations§
Source§impl Clone for JingfenGoodsRequest
impl Clone for JingfenGoodsRequest
Source§fn clone(&self) -> JingfenGoodsRequest
fn clone(&self) -> JingfenGoodsRequest
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 JingfenGoodsRequest
impl Debug for JingfenGoodsRequest
Auto Trait Implementations§
impl Freeze for JingfenGoodsRequest
impl RefUnwindSafe for JingfenGoodsRequest
impl Send for JingfenGoodsRequest
impl Sync for JingfenGoodsRequest
impl Unpin for JingfenGoodsRequest
impl UnwindSafe for JingfenGoodsRequest
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