pub struct EsSyncManager { /* private fields */ }Implementations§
Source§impl EsSyncManager
impl EsSyncManager
pub fn new() -> Self
pub fn create_index( &mut self, index: impl Into<String>, mapping: HashMap<String, EsFieldType>, )
pub fn get_mapping(&self, index: &str) -> Option<&HashMap<String, EsFieldType>>
pub fn sync_to_es( &self, documents: Vec<EsDocument>, ) -> Result<EsSyncResult, EsError>
pub fn delete_from_es( &self, index: &str, ids: Vec<String>, ) -> Result<EsSyncResult, EsError>
pub fn search( &self, request: EsSearchRequest, ) -> Result<EsSearchResult, EsError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for EsSyncManager
impl RefUnwindSafe for EsSyncManager
impl Send for EsSyncManager
impl Sync for EsSyncManager
impl Unpin for EsSyncManager
impl UnsafeUnpin for EsSyncManager
impl UnwindSafe for EsSyncManager
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