#[non_exhaustive]pub enum BatchResultItem {
Text(Box<BatchItem<TextBatchResult>>),
Image(Box<BatchItem<ImageBatchResult>>),
}Expand description
One item of get_batch_results.
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.
Text(Box<BatchItem<TextBatchResult>>)
A text request.
Image(Box<BatchItem<ImageBatchResult>>)
An image request.
Implementations§
Trait Implementations§
Source§impl Clone for BatchResultItem
impl Clone for BatchResultItem
Source§fn clone(&self) -> BatchResultItem
fn clone(&self) -> BatchResultItem
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 BatchResultItem
impl Debug for BatchResultItem
Source§impl PartialEq for BatchResultItem
impl PartialEq for BatchResultItem
impl StructuralPartialEq for BatchResultItem
Auto Trait Implementations§
impl Freeze for BatchResultItem
impl RefUnwindSafe for BatchResultItem
impl Send for BatchResultItem
impl Sync for BatchResultItem
impl Unpin for BatchResultItem
impl UnsafeUnpin for BatchResultItem
impl UnwindSafe for BatchResultItem
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