pub struct DeleteDocumentRequest {
pub index: String,
pub cluster: Option<String>,
pub id: Option<i64>,
pub query: Option<Value>,
}
Expand description
DeleteDocumentRequest : Payload for delete request. Documents can be deleted either one by one by specifying the document id or by providing a query object. For more information see Delete API
Fields§
§index: String
Index name
cluster: Option<String>
cluster name
id: Option<i64>
Document ID
query: Option<Value>
Query tree object
Implementations§
Source§impl DeleteDocumentRequest
impl DeleteDocumentRequest
Sourcepub fn new(index: String) -> DeleteDocumentRequest
pub fn new(index: String) -> DeleteDocumentRequest
Payload for delete request. Documents can be deleted either one by one by specifying the document id or by providing a query object. For more information see Delete API
Trait Implementations§
Source§impl Clone for DeleteDocumentRequest
impl Clone for DeleteDocumentRequest
Source§fn clone(&self) -> DeleteDocumentRequest
fn clone(&self) -> DeleteDocumentRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeleteDocumentRequest
impl Debug for DeleteDocumentRequest
Source§impl Default for DeleteDocumentRequest
impl Default for DeleteDocumentRequest
Source§fn default() -> DeleteDocumentRequest
fn default() -> DeleteDocumentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeleteDocumentRequest
impl<'de> Deserialize<'de> for DeleteDocumentRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeleteDocumentRequest
impl PartialEq for DeleteDocumentRequest
Source§impl Serialize for DeleteDocumentRequest
impl Serialize for DeleteDocumentRequest
impl StructuralPartialEq for DeleteDocumentRequest
Auto Trait Implementations§
impl Freeze for DeleteDocumentRequest
impl RefUnwindSafe for DeleteDocumentRequest
impl Send for DeleteDocumentRequest
impl Sync for DeleteDocumentRequest
impl Unpin for DeleteDocumentRequest
impl UnwindSafe for DeleteDocumentRequest
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