pub struct Sql<'a> { /* private fields */ }
Expand description
Namespace client for Sql APIs
Implementations§
Source§impl<'a> Sql<'a>
impl<'a> Sql<'a>
pub fn transport(&self) -> &Transport
Sourcepub fn clear_cursor<'b>(&'a self) -> SqlClearCursor<'a, 'b, ()>
pub fn clear_cursor<'b>(&'a self) -> SqlClearCursor<'a, 'b, ()>
Clears the SQL cursor
Sourcepub fn delete_async<'b>(
&'a self,
parts: SqlDeleteAsyncParts<'b>,
) -> SqlDeleteAsync<'a, 'b>
pub fn delete_async<'b>( &'a self, parts: SqlDeleteAsyncParts<'b>, ) -> SqlDeleteAsync<'a, 'b>
Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it.
Sourcepub fn get_async<'b>(
&'a self,
parts: SqlGetAsyncParts<'b>,
) -> SqlGetAsync<'a, 'b>
pub fn get_async<'b>( &'a self, parts: SqlGetAsyncParts<'b>, ) -> SqlGetAsync<'a, 'b>
Returns the current status and available results for an async SQL search or stored synchronous SQL search
Sourcepub fn get_async_status<'b>(
&'a self,
parts: SqlGetAsyncStatusParts<'b>,
) -> SqlGetAsyncStatus<'a, 'b>
pub fn get_async_status<'b>( &'a self, parts: SqlGetAsyncStatusParts<'b>, ) -> SqlGetAsyncStatus<'a, 'b>
Returns the current status of an async SQL search or a stored synchronous SQL search
Sourcepub fn translate<'b>(&'a self) -> SqlTranslate<'a, 'b, ()>
pub fn translate<'b>(&'a self) -> SqlTranslate<'a, 'b, ()>
Translates SQL into Elasticsearch queries
Auto Trait Implementations§
impl<'a> Freeze for Sql<'a>
impl<'a> !RefUnwindSafe for Sql<'a>
impl<'a> Send for Sql<'a>
impl<'a> Sync for Sql<'a>
impl<'a> Unpin for Sql<'a>
impl<'a> !UnwindSafe for Sql<'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