pub struct WebSearcher { /* private fields */ }Expand description
Web searcher that performs searches and filters results
Implementations§
Source§impl WebSearcher
impl WebSearcher
pub fn with_client(client: impl SearchClient + 'static) -> Self
pub fn try_new() -> Result<Self, WebSearchError>
Sourcepub async fn search<T, U>(
&self,
args: WebSearchInput,
on_retry: T,
) -> Result<WebSearchOutput, WebSearchError>
pub async fn search<T, U>( &self, args: WebSearchInput, on_retry: T, ) -> Result<WebSearchOutput, WebSearchError>
Performs a web search with the given parameters
Auto Trait Implementations§
impl !RefUnwindSafe for WebSearcher
impl !UnwindSafe for WebSearcher
impl Freeze for WebSearcher
impl Send for WebSearcher
impl Sync for WebSearcher
impl Unpin for WebSearcher
impl UnsafeUnpin for WebSearcher
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.