Struct uiuifree_elastic::IndicesApi
source · [−]pub struct IndicesApi<'a> { /* private fields */ }Implementations
sourceimpl IndicesApi<'_>
impl IndicesApi<'_>
pub fn new(api: &ElasticApi) -> IndicesApi<'_>
sourceimpl IndicesApi<'_>
impl IndicesApi<'_>
pub async fn exists(&self, index: &str) -> Result<(), ElasticError>
pub async fn refresh(
&self,
index: &str
) -> Result<IndicesRefreshResponse, ElasticError>
pub async fn create<T>(&self, index: &str, json: T) -> Result<bool, ElasticError>where
T: Serialize,
pub async fn delete(&self, index: &str) -> Result<bool, ElasticError>
pub async fn recreate<T>(
&self,
index: &str,
json: T
) -> Result<bool, ElasticError>where
T: Serialize,
Auto Trait Implementations
impl<'a> !RefUnwindSafe for IndicesApi<'a>
impl<'a> Send for IndicesApi<'a>
impl<'a> Sync for IndicesApi<'a>
impl<'a> Unpin for IndicesApi<'a>
impl<'a> !UnwindSafe for IndicesApi<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more