#[non_exhaustive]pub struct Request {
pub body: Option<RequestBody>,
}Expand description
Clear an SQL search cursor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.body: Option<RequestBody>The body.
Implementations§
Trait Implementations§
Source§impl Endpoint for Request
impl Endpoint for Request
Source§type Response = Response
type Response = Response
The response, with documents and other user data as JSON. Use
Client::send_as to read them into your
own types.Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
The endpoint’s name in the specification, such as
search or
indices.create.Source§fn query(&self) -> Result<Vec<(&'static str, String)>, Error>
fn query(&self) -> Result<Vec<(&'static str, String)>, Error>
The query parameters set, not yet percent-encoded.
Source§fn text_response(&self) -> bool
fn text_response(&self) -> bool
Whether the response is plain text rather than JSON, as for
nodes.hot_threads. The text reads as a JSON string, so into a
String.impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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