#[non_exhaustive]pub enum BatchRequest {
Text(Box<TextBatchRequest>),
Image(Box<ImageBatchRequest>),
}Expand description
A request of a batch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for BatchRequest
impl Clone for BatchRequest
Source§fn clone(&self) -> BatchRequest
fn clone(&self) -> BatchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchRequest
impl Debug for BatchRequest
Source§impl From<ImageBatchRequest> for BatchRequest
impl From<ImageBatchRequest> for BatchRequest
Source§fn from(request: ImageBatchRequest) -> Self
fn from(request: ImageBatchRequest) -> Self
Converts to this type from the input type.
Source§impl From<TextBatchRequest> for BatchRequest
impl From<TextBatchRequest> for BatchRequest
Source§fn from(request: TextBatchRequest) -> Self
fn from(request: TextBatchRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BatchRequest
impl !UnwindSafe for BatchRequest
impl Freeze for BatchRequest
impl Send for BatchRequest
impl Sync for BatchRequest
impl Unpin for BatchRequest
impl UnsafeUnpin for BatchRequest
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