pub struct SyncBatchApi { /* private fields */ }Expand description
Blocking wrapper for BatchApi.
Implementations§
Source§impl SyncBatchApi
impl SyncBatchApi
Sourcepub fn list(&self) -> Result<BatchListResponse>
pub fn list(&self) -> Result<BatchListResponse>
List batches.
Sourcepub fn list_with_options(
&self,
limit: Option<u32>,
next_token: Option<&str>,
) -> Result<BatchListResponse>
pub fn list_with_options( &self, limit: Option<u32>, next_token: Option<&str>, ) -> Result<BatchListResponse>
List batches with pagination options.
Sourcepub fn add_requests(
&self,
batch_id: impl AsRef<str>,
requests: Vec<BatchRequest>,
) -> Result<()>
pub fn add_requests( &self, batch_id: impl AsRef<str>, requests: Vec<BatchRequest>, ) -> Result<()>
Add requests to a batch.
Sourcepub fn list_requests(
&self,
batch_id: impl AsRef<str>,
) -> Result<BatchRequestListResponse>
pub fn list_requests( &self, batch_id: impl AsRef<str>, ) -> Result<BatchRequestListResponse>
List requests in a batch.
Sourcepub fn list_requests_with_options(
&self,
batch_id: impl AsRef<str>,
limit: Option<u32>,
next_token: Option<&str>,
) -> Result<BatchRequestListResponse>
pub fn list_requests_with_options( &self, batch_id: impl AsRef<str>, limit: Option<u32>, next_token: Option<&str>, ) -> Result<BatchRequestListResponse>
List requests in a batch with pagination options.
Sourcepub fn list_results(
&self,
batch_id: impl AsRef<str>,
) -> Result<BatchResultListResponse>
pub fn list_results( &self, batch_id: impl AsRef<str>, ) -> Result<BatchResultListResponse>
List results for a batch.
Sourcepub fn list_results_with_options(
&self,
batch_id: impl AsRef<str>,
limit: Option<u32>,
next_token: Option<&str>,
) -> Result<BatchResultListResponse>
pub fn list_results_with_options( &self, batch_id: impl AsRef<str>, limit: Option<u32>, next_token: Option<&str>, ) -> Result<BatchResultListResponse>
List results for a batch with pagination options.
Sourcepub fn get_result(
&self,
batch_id: impl AsRef<str>,
request_id: impl AsRef<str>,
) -> Result<BatchResult>
pub fn get_result( &self, batch_id: impl AsRef<str>, request_id: impl AsRef<str>, ) -> Result<BatchResult>
Get a specific request result.
Trait Implementations§
Source§impl Clone for SyncBatchApi
impl Clone for SyncBatchApi
Source§fn clone(&self) -> SyncBatchApi
fn clone(&self) -> SyncBatchApi
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for SyncBatchApi
impl !RefUnwindSafe for SyncBatchApi
impl Send for SyncBatchApi
impl Sync for SyncBatchApi
impl Unpin for SyncBatchApi
impl UnsafeUnpin for SyncBatchApi
impl !UnwindSafe for SyncBatchApi
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