pub struct PddConvertRequest {
pub pdd_app_key: String,
pub pdd_app_secret: String,
pub pid: String,
pub content: String,
pub custom_parameters: Option<String>,
}Expand description
Fields§
§pdd_app_key: String拼多多开放平台应用的 appkey
pdd_app_secret: String拼多多开放平台应用的 appsecret
pid: String拼多多平台的推广位
content: String商品内容,支持纯数字 ID 或拼多多推广短链
custom_parameters: Option<String>自定义参数,为链接打上自定义标签 (可选) 格式为 JSON: {“uid”:“15611448080”,“sid”:“”} 用于返利场景,需要 URL 编码
Implementations§
Source§impl PddConvertRequest
impl PddConvertRequest
Sourcepub fn new(
pdd_app_key: impl Into<String>,
pdd_app_secret: impl Into<String>,
pid: impl Into<String>,
content: impl Into<String>,
) -> Self
pub fn new( pdd_app_key: impl Into<String>, pdd_app_secret: impl Into<String>, pid: impl Into<String>, content: impl Into<String>, ) -> Self
创建新的拼多多转链请求
§Arguments
pdd_app_key- 拼多多开放平台应用的 appkeypdd_app_secret- 拼多多开放平台应用的 appsecretpid- 拼多多平台的推广位content- 商品 ID 或推广短链
Sourcepub fn custom_parameters(self, custom_parameters: impl Into<String>) -> Self
pub fn custom_parameters(self, custom_parameters: impl Into<String>) -> Self
设置自定义参数 (用于返利场景)
Trait Implementations§
Source§impl Clone for PddConvertRequest
impl Clone for PddConvertRequest
Source§fn clone(&self) -> PddConvertRequest
fn clone(&self) -> PddConvertRequest
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 PddConvertRequest
impl Debug for PddConvertRequest
Auto Trait Implementations§
impl Freeze for PddConvertRequest
impl RefUnwindSafe for PddConvertRequest
impl Send for PddConvertRequest
impl Sync for PddConvertRequest
impl Unpin for PddConvertRequest
impl UnwindSafe for PddConvertRequest
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