pub struct BulkApi<'a> { /* private fields */ }
Implementations§
Source§impl 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> Freeze for BulkApi<'a>
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§
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