pub struct PddOrderQueryRequest {
pub pdd_app_key: String,
pub pdd_app_secret: String,
pub start_update_time: i64,
pub end_update_time: i64,
pub query_order_type: Option<u32>,
pub page: Option<u32>,
pub page_size: Option<u32>,
pub cash_gift_order: Option<bool>,
}Expand description
Fields§
§pdd_app_key: String拼多多开放平台应用的 appkey
pdd_app_secret: String拼多多开放平台应用的 appsecret
start_update_time: i64查询开始时间 (10 位秒级时间戳)
end_update_time: i64查询结束时间 (10 位秒级时间戳,与开始时间相差不超过 24 小时)
query_order_type: Option<u32>订单类型 (可选): 1-推广订单,2-直播间订单
page: Option<u32>页码 (可选,从 1 到 10000,默认 1)
page_size: Option<u32>每页数量 (可选,默认 100,范围 10-100)
cash_gift_order: Option<bool>是否为礼金订单 (可选)
Implementations§
Source§impl PddOrderQueryRequest
impl PddOrderQueryRequest
Sourcepub fn new(
pdd_app_key: impl Into<String>,
pdd_app_secret: impl Into<String>,
start_update_time: i64,
end_update_time: i64,
) -> Self
pub fn new( pdd_app_key: impl Into<String>, pdd_app_secret: impl Into<String>, start_update_time: i64, end_update_time: i64, ) -> Self
创建新的拼多多订单查询请求
§Arguments
pdd_app_key- 拼多多开放平台应用的 appkeypdd_app_secret- 拼多多开放平台应用的 appsecretstart_update_time- 查询开始时间 (10 位秒级时间戳)end_update_time- 查询结束时间 (10 位秒级时间戳)
Sourcepub fn query_order_type(self, query_order_type: u32) -> Self
pub fn query_order_type(self, query_order_type: u32) -> Self
设置订单类型
Sourcepub fn cash_gift_order(self, cash_gift_order: bool) -> Self
pub fn cash_gift_order(self, cash_gift_order: bool) -> Self
设置是否为礼金订单
Trait Implementations§
Source§impl Clone for PddOrderQueryRequest
impl Clone for PddOrderQueryRequest
Source§fn clone(&self) -> PddOrderQueryRequest
fn clone(&self) -> PddOrderQueryRequest
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 PddOrderQueryRequest
impl Debug for PddOrderQueryRequest
Auto Trait Implementations§
impl Freeze for PddOrderQueryRequest
impl RefUnwindSafe for PddOrderQueryRequest
impl Send for PddOrderQueryRequest
impl Sync for PddOrderQueryRequest
impl Unpin for PddOrderQueryRequest
impl UnwindSafe for PddOrderQueryRequest
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