Struct elasticsearch_dsl::search::runtime_mappings::RuntimeMapping
source · [−]pub struct RuntimeMapping { /* private fields */ }Expand description
A runtime field that is used in a search request.
Implementations
sourceimpl RuntimeMapping
impl RuntimeMapping
sourcepub fn new<T>(type: RuntimeDataType, source: T) -> Selfwhere
T: ToString,
pub fn new<T>(type: RuntimeDataType, source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeMapping
sourcepub fn boolean<T>(source: T) -> Selfwhere
T: ToString,
pub fn boolean<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::Boolean RuntimeMapping
sourcepub fn composite<T>(source: T) -> Selfwhere
T: ToString,
pub fn composite<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::Composite RuntimeMapping
sourcepub fn date<T>(source: T) -> Selfwhere
T: ToString,
pub fn date<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::Date RuntimeMapping without format
sourcepub fn date_format<F, T>(format: F, source: T) -> Selfwhere
F: ToString,
T: ToString,
pub fn date_format<F, T>(format: F, source: T) -> Selfwhere
F: ToString,
T: ToString,
Creates a new instance of RuntimeDataType::Date RuntimeMapping with format
sourcepub fn double<T>(source: T) -> Selfwhere
T: ToString,
pub fn double<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::Double RuntimeMapping
sourcepub fn geo_point<T>(source: T) -> Selfwhere
T: ToString,
pub fn geo_point<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::GeoPoint RuntimeMapping
sourcepub fn ip<T>(source: T) -> Selfwhere
T: ToString,
pub fn ip<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::Ip RuntimeMapping
sourcepub fn keyword<T>(source: T) -> Selfwhere
T: ToString,
pub fn keyword<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::Keyword RuntimeMapping
sourcepub fn long<T>(source: T) -> Selfwhere
T: ToString,
pub fn long<T>(source: T) -> Selfwhere
T: ToString,
Creates a new instance of RuntimeDataType::Long RuntimeMapping
Trait Implementations
sourceimpl Clone for RuntimeMapping
impl Clone for RuntimeMapping
sourcefn clone(&self) -> RuntimeMapping
fn clone(&self) -> RuntimeMapping
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RuntimeMapping
impl Debug for RuntimeMapping
sourceimpl PartialEq<RuntimeMapping> for RuntimeMapping
impl PartialEq<RuntimeMapping> for RuntimeMapping
sourcefn eq(&self, other: &RuntimeMapping) -> bool
fn eq(&self, other: &RuntimeMapping) -> bool
sourceimpl PartialOrd<RuntimeMapping> for RuntimeMapping
impl PartialOrd<RuntimeMapping> for RuntimeMapping
sourcefn partial_cmp(&self, other: &RuntimeMapping) -> Option<Ordering>
fn partial_cmp(&self, other: &RuntimeMapping) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for RuntimeMapping
impl Serialize for RuntimeMapping
impl StructuralPartialEq for RuntimeMapping
Auto Trait Implementations
impl RefUnwindSafe for RuntimeMapping
impl Send for RuntimeMapping
impl Sync for RuntimeMapping
impl Unpin for RuntimeMapping
impl UnwindSafe for RuntimeMapping
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