pub struct OpResult {
pub id: String,
pub status: u16,
pub created: bool,
}Expand description
The outcome of a single operation in a batch, positionally aligned with the
batch’s operations (so a _bulk response can be re-interleaved in M3).
Fields§
§id: StringThe document id the operation acted on (constructed or auto-assigned).
status: u16The upstream HTTP status for this operation.
created: boolWhether the document was newly created (vs. updated).
Implementations§
Trait Implementations§
impl Eq for OpResult
impl StructuralPartialEq for OpResult
Auto Trait Implementations§
impl Freeze for OpResult
impl RefUnwindSafe for OpResult
impl Send for OpResult
impl Sync for OpResult
impl Unpin for OpResult
impl UnsafeUnpin for OpResult
impl UnwindSafe for OpResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.