pub struct BatchOptions {
pub concurrency: NonZeroUsize,
pub context: Option<Value>,
pub assets: Assets,
}Expand description
Options shared by per-item filtering and reranking.
Fields§
§concurrency: NonZeroUsizeMaximum concurrently polled provider calls; defaults to eight.
context: Option<Value>Shared background included in each item’s independent request.
assets: AssetsAvailable on crate feature
images only.Explicit images available to each independent request.
Trait Implementations§
Source§impl Clone for BatchOptions
impl Clone for BatchOptions
Source§impl Debug for BatchOptions
impl Debug for BatchOptions
Auto Trait Implementations§
impl Freeze for BatchOptions
impl RefUnwindSafe for BatchOptions
impl Send for BatchOptions
impl Sync for BatchOptions
impl Unpin for BatchOptions
impl UnsafeUnpin for BatchOptions
impl UnwindSafe for BatchOptions
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