pub struct SerpApi { /* private fields */ }Implementations§
Source§impl SerpApi
impl SerpApi
pub fn new(api_key: SecretString) -> Self
Sourcepub fn search_bing(
&self,
request: &BingSearchRequest,
) -> Result<String, Box<dyn Error>>
pub fn search_bing( &self, request: &BingSearchRequest, ) -> Result<String, Box<dyn Error>>
See: https://serpapi.com/bing-search-api
Sourcepub fn search_duckduckgo(
&self,
request: &DuckDuckGoSearchRequest,
) -> Result<String, Box<dyn Error>>
pub fn search_duckduckgo( &self, request: &DuckDuckGoSearchRequest, ) -> Result<String, Box<dyn Error>>
See: https://serpapi.com/duckduckgo-search-api
Sourcepub fn search_google(
&self,
request: &GoogleSearchRequest,
) -> Result<String, Box<dyn Error>>
pub fn search_google( &self, request: &GoogleSearchRequest, ) -> Result<String, Box<dyn Error>>
See: https://serpapi.com/search-api
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SerpApi
impl RefUnwindSafe for SerpApi
impl Send for SerpApi
impl Sync for SerpApi
impl Unpin for SerpApi
impl UnsafeUnpin for SerpApi
impl UnwindSafe for SerpApi
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