pub struct CreateBatchRequest {
pub key: String,
pub body: CreateBatchBody,
}Expand description
Create batch request (POST /paas/v4/batches)
Fields§
§key: String§body: CreateBatchBodyImplementations§
Source§impl CreateBatchRequest
impl CreateBatchRequest
Sourcepub fn new(
key: String,
input_file_id: impl Into<String>,
endpoint: BatchEndpoint,
) -> Self
pub fn new( key: String, input_file_id: impl Into<String>, endpoint: BatchEndpoint, ) -> Self
Build a new create-batch request with required fields
Sourcepub fn with_auto_delete_input_file(self, v: bool) -> Self
pub fn with_auto_delete_input_file(self, v: bool) -> Self
Set auto-delete flag (default true)
Sourcepub fn with_metadata(self, v: Value) -> Self
pub fn with_metadata(self, v: Value) -> Self
Set metadata object
Sourcepub async fn send(&self) -> Result<CreateBatchResponse>
pub async fn send(&self) -> Result<CreateBatchResponse>
Send request and parse typed response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateBatchRequest
impl RefUnwindSafe for CreateBatchRequest
impl Send for CreateBatchRequest
impl Sync for CreateBatchRequest
impl Unpin for CreateBatchRequest
impl UnwindSafe for CreateBatchRequest
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