pub struct BulkOperation { /* private fields */ }Implementations§
Source§impl BulkOperation
impl BulkOperation
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 run_query( &self, query: &str, group_objects: Option<bool>, ) -> Result<RunQueryResp, APIError>
pub async fn run_mutation( &self, mutation: &str, staged_upload_path: &str, client_identifier: Option<&str>, ) -> Result<RunMutationResp, APIError>
pub async fn cancel(&self, id: &str) -> Result<CancelResp, APIError>
pub async fn get(&self, id: &str) -> Result<GetBulkOperationResp, APIError>
pub async fn list( &self, params: &ListBulkOperationsParams, ) -> Result<ListBulkOperationsResp, APIError>
pub async fn create_staged_upload( &self, input: &[StagedUploadInput], ) -> Result<StagedUploadsCreateResp, APIError>
pub async fn export_products( &self, params: Option<&ProductQueryParams>, ) -> Result<RunQueryResp, APIError>
pub async fn export_orders( &self, params: Option<&OrderQueryParams>, ) -> Result<RunQueryResp, APIError>
pub async fn export_collections( &self, params: Option<&CollectionQueryParams>, ) -> Result<RunQueryResp, APIError>
pub async fn export_customers( &self, params: Option<&CustomerQueryParams>, ) -> Result<RunQueryResp, APIError>
pub async fn export_inventory_items( &self, params: Option<&InventoryItemQueryParams>, ) -> Result<RunQueryResp, APIError>
pub async fn export_draft_orders( &self, params: Option<&DraftOrderQueryParams>, ) -> Result<RunQueryResp, APIError>
pub async fn stream_jsonl<F, Fut>( &self, url: &str, batch_size: usize, on_batch: F, ) -> Result<(), APIError>
pub async fn stream_products<F, Fut>( &self, url: &str, batch_size: usize, on_batch: F, ) -> Result<(), APIError>
pub async fn stream_orders<F, Fut>( &self, url: &str, batch_size: usize, on_batch: F, ) -> Result<(), APIError>
pub async fn stream_collections<F, Fut>( &self, url: &str, batch_size: usize, on_batch: F, ) -> Result<(), APIError>
pub async fn stream_customers<F, Fut>( &self, url: &str, batch_size: usize, on_batch: F, ) -> Result<(), APIError>
pub async fn stream_inventory_items<F, Fut>( &self, url: &str, batch_size: usize, on_batch: F, ) -> Result<(), APIError>
pub async fn stream_draft_orders<F, Fut>( &self, url: &str, batch_size: usize, on_batch: F, ) -> Result<(), APIError>
Auto Trait Implementations§
impl !RefUnwindSafe for BulkOperation
impl !UnwindSafe for BulkOperation
impl Freeze for BulkOperation
impl Send for BulkOperation
impl Sync for BulkOperation
impl Unpin for BulkOperation
impl UnsafeUnpin for BulkOperation
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