pub struct DeliveryApi { /* private fields */ }Expand description
即时配送 API 门面
Implementations§
Source§impl DeliveryApi
impl DeliveryApi
pub fn new(client: MpClient) -> DeliveryApi
pub fn client(&self) -> &MpClient
pub async fn get_all_delivery( &self, ) -> Result<GetAllLocalDeliveryResponse, MpError>
pub async fn get_shop(&self) -> Result<GetShopResponse, MpError>
pub async fn add_shop(&self, req: &AddShopRequest) -> Result<(), MpError>
pub async fn open_delivery(&self) -> Result<(), MpError>
pub async fn pre_add_order( &self, req: &LocalOrderRequest, ) -> Result<PreAddOrderResponse, MpError>
pub async fn add_order( &self, req: &LocalOrderRequest, ) -> Result<AddOrderResponse, MpError>
pub async fn readd_order( &self, req: &LocalOrderRequest, ) -> Result<AddOrderResponse, MpError>
pub async fn get_order( &self, req: &GetLocalOrderRequest, ) -> Result<GetLocalOrderResponse, MpError>
pub async fn cancel_order( &self, req: &CancelLocalOrderRequest, ) -> Result<CancelLocalOrderResponse, MpError>
pub async fn precancel_order( &self, req: &CancelLocalOrderRequest, ) -> Result<CancelLocalOrderResponse, MpError>
pub async fn add_tips( &self, req: &AddTipsRequest, ) -> Result<SimpleDeliveryResponse, MpError>
pub async fn confirm_return( &self, req: &ConfirmReturnRequest, ) -> Result<SimpleDeliveryResponse, MpError>
pub async fn test_update_order( &self, req: &TestUpdateOrderRequest, ) -> Result<SimpleDeliveryResponse, MpError>
pub async fn realmock_update_order( &self, req: &TestUpdateOrderRequest, ) -> Result<SimpleDeliveryResponse, MpError>
Trait Implementations§
Source§impl Clone for DeliveryApi
impl Clone for DeliveryApi
Source§fn clone(&self) -> DeliveryApi
fn clone(&self) -> DeliveryApi
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 DeliveryApi
impl !UnwindSafe for DeliveryApi
impl Freeze for DeliveryApi
impl Send for DeliveryApi
impl Sync for DeliveryApi
impl Unpin for DeliveryApi
impl UnsafeUnpin for DeliveryApi
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