Enum elasticsearch::params::OpType
source · pub enum OpType {
Index,
Create,
}
Expand description
Explicit operation type. Defaults to index
for requests with an explicit document ID, and to create
for requests without an explicit document ID
Variants
Index
Create
Trait Implementations
sourceimpl<'de> Deserialize<'de> for OpType
impl<'de> Deserialize<'de> for OpType
sourcefn 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
impl Copy for OpType
impl StructuralPartialEq for OpType
Auto Trait Implementations
impl RefUnwindSafe for OpType
impl Send for OpType
impl Sync for OpType
impl Unpin for OpType
impl UnwindSafe for OpType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more