pub struct ZtkClient { /* private fields */ }Expand description
折淘客 SDK 客户端
提供各平台 API 的访问入口
§Example
ⓘ
use ztk_rust_sdk::ZtkClient;
#[tokio::main]
async fn main() -> ztk_rust_sdk::ZtkResult<()> {
let client = ZtkClient::new("your_appkey").build()?;
// 调用淘宝 API
// let result = client.taobao().convert_by_item_id(request).await?;
// 调用京东 API
// let result = client.jd().convert(request).await?;
Ok(())
}Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZtkClient
impl !RefUnwindSafe for ZtkClient
impl Send for ZtkClient
impl Sync for ZtkClient
impl Unpin for ZtkClient
impl !UnwindSafe for ZtkClient
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