pub struct SerpapiBackend { /* private fields */ }Available on crate feature
backends only.Implementations§
Source§impl SerpapiBackend
impl SerpapiBackend
pub fn new(config: &SerpapiConfig) -> Result<Self, WebshiftError>
Trait Implementations§
Source§impl Debug for SerpapiBackend
impl Debug for SerpapiBackend
Source§impl SearchBackend for SerpapiBackend
impl SearchBackend for SerpapiBackend
fn search<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
num_results: usize,
lang: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<BackendResponse, WebshiftError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for SerpapiBackend
impl !RefUnwindSafe for SerpapiBackend
impl Send for SerpapiBackend
impl Sync for SerpapiBackend
impl Unpin for SerpapiBackend
impl UnsafeUnpin for SerpapiBackend
impl !UnwindSafe for SerpapiBackend
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