pub struct MeiliClient { /* private fields */ }Implementations§
Source§impl MeiliClient
impl MeiliClient
pub fn new(connection: MeiliConnection) -> Result<Self>
pub fn health(&self) -> Result<Value>
pub fn create_index(&self, name: &str) -> Result<()>
pub fn delete_index(&self, name: &str) -> Result<()>
pub fn apply_settings(&self, index: &str, settings: &Value) -> Result<()>
pub fn replace_documents<T: Serialize>( &self, index: &str, documents: &[T], ) -> Result<()>
pub fn search<T: DeserializeOwned>( &self, index: &str, body: Value, ) -> Result<SearchResponse<T>>
pub fn stats(&self, index: &str) -> Result<Value>
pub fn swap_indexes(&self, swaps: Vec<(String, String)>) -> Result<()>
pub fn wait_for_task(&self, uid: u64) -> Result<()>
Trait Implementations§
Source§impl Clone for MeiliClient
impl Clone for MeiliClient
Source§fn clone(&self) -> MeiliClient
fn clone(&self) -> MeiliClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MeiliClient
impl !RefUnwindSafe for MeiliClient
impl Send for MeiliClient
impl Sync for MeiliClient
impl Unpin for MeiliClient
impl UnsafeUnpin for MeiliClient
impl !UnwindSafe for MeiliClient
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