pub struct IndicesApi<'a> { /* private fields */ }
Implementations§
Source§impl IndicesApi<'_>
impl IndicesApi<'_>
pub fn new(api: &ElasticApi) -> IndicesApi<'_>
Source§impl IndicesApi<'_>
impl IndicesApi<'_>
pub async fn get_alias(&self, index: &[&str]) -> Result<Value, ElasticError>
pub async fn exist_alias(&self, index: &[&str]) -> Result<(), ElasticError>
pub async fn update_alias(&self, value: Value) -> Result<Value, ElasticError>
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 put_index_template<T>(
&self,
index: &str,
json: T,
) -> Result<bool, ElasticError>where
T: Serialize,
pub async fn exists_index_template<T>( &self, index: &str, ) -> Result<bool, ElasticError>
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> Freeze for IndicesApi<'a>
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§
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