pub struct LogisticsApi { /* private fields */ }Expand description
物流助手 API 门面
Implementations§
Source§impl LogisticsApi
impl LogisticsApi
Sourcepub fn new(client: MpClient) -> LogisticsApi
pub fn new(client: MpClient) -> LogisticsApi
基于客户端创建
pub fn client(&self) -> &MpClient
pub async fn bind_account( &self, req: &BindAccountRequest, ) -> Result<(), MpError>
pub async fn get_all_account(&self) -> Result<GetAllAccountResponse, MpError>
pub async fn get_all_delivery(&self) -> Result<GetAllDeliveryResponse, MpError>
pub async fn add_order( &self, req: &AddOrderRequest, ) -> Result<AddOrderResponse, MpError>
pub async fn cancel_order( &self, req: &CancelOrderRequest, ) -> Result<CancelOrderResponse, MpError>
pub async fn get_order( &self, req: &GetOrderRequest, ) -> Result<GetOrderResponse, MpError>
pub async fn batch_get_order( &self, req: &BatchGetOrderRequest, ) -> Result<BatchGetOrderResponse, MpError>
pub async fn get_path( &self, req: &GetPathRequest, ) -> Result<GetPathResponse, MpError>
pub async fn get_quota( &self, req: &GetQuotaRequest, ) -> Result<GetQuotaResponse, MpError>
pub async fn update_printer( &self, req: &UpdatePrinterRequest, ) -> Result<(), MpError>
pub async fn get_all_printer(&self) -> Result<GetAllPrinterResponse, MpError>
pub async fn test_update_order( &self, req: &TestUpdateOrderRequest, ) -> Result<(), MpError>
Trait Implementations§
Source§impl Clone for LogisticsApi
impl Clone for LogisticsApi
Source§fn clone(&self) -> LogisticsApi
fn clone(&self) -> LogisticsApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LogisticsApi
impl !UnwindSafe for LogisticsApi
impl Freeze for LogisticsApi
impl Send for LogisticsApi
impl Sync for LogisticsApi
impl Unpin for LogisticsApi
impl UnsafeUnpin for LogisticsApi
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