Struct uiuifree_elastic::BulkApi
source · [−]pub struct BulkApi<'a> { /* private fields */ }Implementations
sourceimpl BulkApi<'_>
impl BulkApi<'_>
pub async fn bulk<T: Serialize>(
&self,
sources: Vec<T>,
refresh: bool
) -> Result<Value, ElasticError>
pub async fn insert_index<T: Serialize>(
&self,
index: &str,
sources: Vec<T>
) -> Result<Response, ElasticError>
pub async fn insert_index_by_id<T: Serialize>(
&self,
index: &str,
id: &str,
source: T,
refresh: bool
) -> Result<Response, ElasticError>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BulkApi<'a>
impl<'a> Send for BulkApi<'a>
impl<'a> Sync for BulkApi<'a>
impl<'a> Unpin for BulkApi<'a>
impl<'a> !UnwindSafe for BulkApi<'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