pub struct Order { /* private fields */ }Implementations§
Source§impl Order
impl Order
pub fn new( shop_url: Arc<String>, version: Arc<String>, access_token: Arc<String>, callbacks: Arc<RequestCallbacks>, ) -> Self
Sourcepub fn with_ctx(ctx: ServiceContext) -> Self
pub fn with_ctx(ctx: ServiceContext) -> Self
Build the service from a shared ServiceContext. Cheaper than new at
construction sites that already hold a context (one Arc clone per service).
pub async fn get_with_id( &self, order_id: &String, ) -> Result<GetOrderResp, APIError>
pub async fn get_with_name( &self, order_name: &String, ) -> Result<OrderQueryResp, APIError>
pub async fn patch( &self, order_id: &String, patch_request: &PatchOrderRequest, ) -> Result<GetOrderResp, APIError>
Auto Trait Implementations§
impl !RefUnwindSafe for Order
impl !UnwindSafe for Order
impl Freeze for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
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