pub struct JdConvertRequest {
pub material_id: String,
pub union_id: String,
pub position_id: Option<String>,
pub pid: Option<String>,
pub coupon_url: Option<String>,
pub sub_union_id: Option<String>,
pub chain_type: Option<JdChainType>,
pub gift_coupon_key: Option<String>,
}Expand description
Fields§
§material_id: String推广物料 URL 或 SKU ID (需要 URL 编码)
union_id: String京东联盟 ID,为一串数字
position_id: Option<String>自定义推广位 ID (可选,用于返利场景) 可以自定义数字,自己在本地跟用户做好关联
pid: Option<String>联盟子推客身份标识 (可选) 格式: 联盟id_应用id_推广位id,三段式
coupon_url: Option<String>优惠券领取链接 (可选)
sub_union_id: Option<String>子渠道标识 (可选)
chain_type: Option<JdChainType>转链类型: 1-长链, 2-短链, 3-长链+短链
gift_coupon_key: Option<String>礼金批次号 (可选)
Implementations§
Source§impl JdConvertRequest
impl JdConvertRequest
Sourcepub fn position_id(self, position_id: impl Into<String>) -> Self
pub fn position_id(self, position_id: impl Into<String>) -> Self
设置自定义推广位 ID
Sourcepub fn coupon_url(self, coupon_url: impl Into<String>) -> Self
pub fn coupon_url(self, coupon_url: impl Into<String>) -> Self
设置优惠券领取链接
Sourcepub fn sub_union_id(self, sub_union_id: impl Into<String>) -> Self
pub fn sub_union_id(self, sub_union_id: impl Into<String>) -> Self
设置子渠道标识
Sourcepub fn chain_type(self, chain_type: JdChainType) -> Self
pub fn chain_type(self, chain_type: JdChainType) -> Self
设置转链类型
Sourcepub fn gift_coupon_key(self, gift_coupon_key: impl Into<String>) -> Self
pub fn gift_coupon_key(self, gift_coupon_key: impl Into<String>) -> Self
设置礼金批次号
Trait Implementations§
Source§impl Clone for JdConvertRequest
impl Clone for JdConvertRequest
Source§fn clone(&self) -> JdConvertRequest
fn clone(&self) -> JdConvertRequest
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 JdConvertRequest
impl Debug for JdConvertRequest
Auto Trait Implementations§
impl Freeze for JdConvertRequest
impl RefUnwindSafe for JdConvertRequest
impl Send for JdConvertRequest
impl Sync for JdConvertRequest
impl Unpin for JdConvertRequest
impl UnwindSafe for JdConvertRequest
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