pub enum BatchCreateInput<'a> {
File(&'a CreateBatchRequest),
Requests(&'a CreateBatchFromRequests<'a>),
}Expand description
Mutually exclusive input paths for Batches::create. Prefer the From conversions at the call site.
Variants§
File(&'a CreateBatchRequest)
Reference a previously uploaded file.
Requests(&'a CreateBatchFromRequests<'a>)
Serialize/upload native requests, then create a batch.
Trait Implementations§
Source§impl<'a> From<&'a CreateBatchFromRequests<'a>> for BatchCreateInput<'a>
impl<'a> From<&'a CreateBatchFromRequests<'a>> for BatchCreateInput<'a>
Source§fn from(value: &'a CreateBatchFromRequests<'a>) -> Self
fn from(value: &'a CreateBatchFromRequests<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a CreateBatchRequest> for BatchCreateInput<'a>
impl<'a> From<&'a CreateBatchRequest> for BatchCreateInput<'a>
Source§fn from(value: &'a CreateBatchRequest) -> Self
fn from(value: &'a CreateBatchRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for BatchCreateInput<'a>
impl<'a> RefUnwindSafe for BatchCreateInput<'a>
impl<'a> Send for BatchCreateInput<'a>
impl<'a> Sync for BatchCreateInput<'a>
impl<'a> Unpin for BatchCreateInput<'a>
impl<'a> UnsafeUnpin for BatchCreateInput<'a>
impl<'a> UnwindSafe for BatchCreateInput<'a>
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