pub struct SearchLimits {
pub max_results: Option<usize>,
pub max_bytes: Option<usize>,
pub max_tokens: Option<usize>,
pub total_bytes: usize,
pub total_tokens: usize,
}
Fields§
§max_results: Option<usize>
§max_bytes: Option<usize>
§max_tokens: Option<usize>
§total_bytes: usize
§total_tokens: usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchLimits
impl RefUnwindSafe for SearchLimits
impl Send for SearchLimits
impl Sync for SearchLimits
impl Unpin for SearchLimits
impl UnwindSafe for SearchLimits
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more