pub struct SearchConfig {
pub providers: Vec<Provider>,
pub limit: usize,
pub per_provider: usize,
pub contact_email: Option<String>,
}Expand description
Router settings.
Fields§
§providers: Vec<Provider>Providers to query, in no particular order.
limit: usizeMaximum results to return after fusion.
per_provider: usizeMaximum results to request from each provider.
contact_email: Option<String>Contact address for the OpenAlex and Crossref “polite pools”.
Both APIs route identified callers to a faster, more reliable pool. Leaving this unset works, but is slower and more likely to be throttled.
Trait Implementations§
Source§impl Clone for SearchConfig
impl Clone for SearchConfig
Source§impl Debug for SearchConfig
impl Debug for SearchConfig
Auto Trait Implementations§
impl Forget for SearchConfig
impl Freeze for SearchConfig
impl Move for SearchConfig
impl RefUnwindSafe for SearchConfig
impl Send for SearchConfig
impl Sync for SearchConfig
impl Unpin for SearchConfig
impl UnsafeUnpin for SearchConfig
impl UnwindSafe for SearchConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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