pub struct GoogleProvider { /* private fields */ }Expand description
Google Custom Search provider
Implementations§
Source§impl GoogleProvider
impl GoogleProvider
Sourcepub fn new(api_key: &str, cx: &str) -> SearchResult<Self>
pub fn new(api_key: &str, cx: &str) -> SearchResult<Self>
Create a new Google provider with API key and Search Engine ID
Sourcepub fn with_config(config: GoogleConfig) -> SearchResult<Self>
pub fn with_config(config: GoogleConfig) -> SearchResult<Self>
Create a new Google provider with custom configuration
Trait Implementations§
Source§impl Debug for GoogleProvider
impl Debug for GoogleProvider
Source§impl SearchProvider for GoogleProvider
impl SearchProvider for GoogleProvider
Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 SearchOptions,
) -> Pin<Box<dyn Future<Output = SearchResult<Vec<SearchResultType>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 SearchOptions,
) -> Pin<Box<dyn Future<Output = SearchResult<Vec<SearchResultType>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search method implementation
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleProvider
impl !UnwindSafe for GoogleProvider
impl Freeze for GoogleProvider
impl Send for GoogleProvider
impl Sync for GoogleProvider
impl Unpin for GoogleProvider
impl UnsafeUnpin for GoogleProvider
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