pub struct IndexClient { /* private fields */ }
Implementations§
Source§impl IndexClient
impl IndexClient
pub fn new(base: String) -> Result<Self, Error>
pub fn load_json<R: Read>(reader: R) -> Result<Vec<Item>, Error>
pub fn stream_search<'a>( &'a self, query: &'a str, limit: usize, ) -> impl Stream<Item = Result<Item, Error>> + 'a
pub async fn search( &self, query: &str, timestamp: Option<&str>, digest: Option<&str>, ) -> Result<Vec<Item>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexClient
impl !RefUnwindSafe for IndexClient
impl Send for IndexClient
impl Sync for IndexClient
impl Unpin for IndexClient
impl !UnwindSafe for IndexClient
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