Struct elastic_responses::bulk::OkItem
[−]
[src]
pub struct OkItem<TIndex = String, TType = String, TId = String> { /* fields omitted */ }
A successful bulk response item.
Methods
impl<TIndex, TType, TId> OkItem<TIndex, TType, TId>
[src]
fn action(&self) -> Action
[src]
The bulk action for this item.
fn version(&self) -> Option<u32>
[src]
The document version after this item.
fn created(&self) -> bool
[src]
Whether or not this item created the document.
created
will only be true
if the action is Index
and the document didn't already exist.
fn found(&self) -> bool
[src]
Whether or not this item found the document.
found
will only be true
if the action is Delete
and the document did already exist.
fn index(&self) -> &TIndex
[src]
The index for this item.
fn ty(&self) -> &TType
[src]
The document type for this item.
fn id(&self) -> &TId
[src]
The document id for this item.