pub struct DocumentSimulation {
pub index: String,
pub version: Option<StringifiedVersionNumber>,
pub routing: Option<String>,
pub version_type: Option<String>,
pub ingest: Ingest,
pub id: String,
pub source: Value,
}Fields§
§index: String§version: Option<StringifiedVersionNumber>Certain APIs may return values, including numbers such as epoch timestamps, as strings. This setting captures this behavior while keeping the semantics of the field type.
Depending on the target language, code generators can keep the union or remove it and leniently parse strings to the target type.
routing: Option<String>Value used to send the document to a specific primary shard.
version_type: Option<String>§ingest: Ingest§id: String§source: ValueJSON body for the document.
Implementations§
Trait Implementations§
Source§impl Clone for DocumentSimulation
impl Clone for DocumentSimulation
Source§fn clone(&self) -> DocumentSimulation
fn clone(&self) -> DocumentSimulation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DocumentSimulation
impl Debug for DocumentSimulation
Source§impl Default for DocumentSimulation
impl Default for DocumentSimulation
Source§fn default() -> DocumentSimulation
fn default() -> DocumentSimulation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentSimulation
impl<'de> Deserialize<'de> for DocumentSimulation
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 DocumentSimulation
impl PartialEq for DocumentSimulation
Source§fn eq(&self, other: &DocumentSimulation) -> bool
fn eq(&self, other: &DocumentSimulation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DocumentSimulation
impl Serialize for DocumentSimulation
impl StructuralPartialEq for DocumentSimulation
Auto Trait Implementations§
impl Freeze for DocumentSimulation
impl RefUnwindSafe for DocumentSimulation
impl Send for DocumentSimulation
impl Sync for DocumentSimulation
impl Unpin for DocumentSimulation
impl UnsafeUnpin for DocumentSimulation
impl UnwindSafe for DocumentSimulation
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