pub struct PddDdkOauthGoodsPromUrlGenerate {
Show 16 fields pub cash_gift_id: Option<i64>, pub cash_gift_name: Option<String>, pub custom_parameters: Option<String>, pub force_duo_id: Option<bool>, pub generate_authority_url: Option<bool>, pub generate_mall_collect_coupon: Option<bool>, pub generate_qq_app: Option<bool>, pub generate_schema_url: Option<bool>, pub generate_short_url: Option<bool>, pub generate_we_app: Option<bool>, pub goods_sign_list: Option<Vec<String>>, pub material_id: Option<String>, pub multi_group: Option<bool>, pub p_id: Option<String>, pub search_id: Option<String>, pub zs_duo_id: Option<i64>,
}
Expand description

生成普通商品推广链接

Fields§

§cash_gift_id: Option<i64>

多多礼金ID

§cash_gift_name: Option<String>

自定义礼金标题,用于向用户展示渠道专属福利,不超过12个字

§custom_parameters: Option<String>

自定义参数,为链接打上自定义标签;自定义参数最长限制64个字节;格式为: {“uid”:“11111”,“sid”:“22222”} ,其中 uid 用户唯一标识,可自行加密后传入,每个用户仅且对应一个标识,必填; sid 上下文信息标识,例如sessionId等,非必填。该json字符串中也可以加入其他自定义的key。(如果使用GET请求,请使用URLEncode处理参数)

§force_duo_id: Option<bool>

是否使用多多客专属推广计划

§generate_authority_url: Option<bool>

是否生成带授权的单品链接。如果未授权,则会走授权流程

§generate_mall_collect_coupon: Option<bool>

是否生成店铺收藏券推广链接

§generate_qq_app: Option<bool>

是否生成qq小程序

§generate_schema_url: Option<bool>

是否返回 schema URL

§generate_short_url: Option<bool>

是否生成短链接,true-是,false-否

§generate_we_app: Option<bool>

是否生成拼多多福利券微信小程序推广信息

§goods_sign_list: Option<Vec<String>>

商品goodsSign列表,例如:[“c9r2omogKFFAc7WBwvbZU1ikIb16_J3CTa8HNN”],支持批量生链。goodsSign是加密后的goodsId, goodsId已下线,请使用goodsSign来替代。使用说明:https://jinbao.pinduoduo.com/qa-system?questionId=252

§material_id: Option<String>

素材ID,可以通过商品详情接口获取商品素材信息

§multi_group: Option<bool>

true–生成多人团推广链接 false–生成单人团推广链接(默认false)1、单人团推广链接:用户访问单人团推广链接,可直接购买商品无需拼团。2、多人团推广链接:用户访问双人团推广链接开团,若用户分享给他人参团,则开团者和参团者的佣金均结算给推手

§p_id: Option<String>

推广位ID

§search_id: Option<String>

搜索id,建议填写,提高收益。来自pdd.ddk.goods.recommend.get、pdd.ddk.goods.search、pdd.ddk.top.goods.list.query等接口

§zs_duo_id: Option<i64>

招商多多客ID

Trait Implementations§

source§

impl Debug for PddDdkOauthGoodsPromUrlGenerate

source§

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

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

impl Default for PddDdkOauthGoodsPromUrlGenerate

source§

fn default() -> PddDdkOauthGoodsPromUrlGenerate

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

impl<'de> Deserialize<'de> for PddDdkOauthGoodsPromUrlGenerate

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 PddDdkOauthGoodsPromUrlGenerate

source§

impl Serialize for PddDdkOauthGoodsPromUrlGenerate

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>,