pub struct RuntimeMapping { /* private fields */ }
Expand description
A runtime field that is used in a search request.
Implementations§
Source§impl 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) -> Self
pub fn date_format<F, T>(format: F, source: T) -> Self
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§
Source§impl Clone for RuntimeMapping
impl Clone for RuntimeMapping
Source§fn clone(&self) -> RuntimeMapping
fn clone(&self) -> RuntimeMapping
Returns a copy of the value. Read more
1.0.0 · 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 RuntimeMapping
impl Debug for RuntimeMapping
Source§impl PartialEq for RuntimeMapping
impl PartialEq for RuntimeMapping
Source§impl PartialOrd for RuntimeMapping
impl PartialOrd for RuntimeMapping
Source§impl Serialize for RuntimeMapping
impl Serialize for RuntimeMapping
impl StructuralPartialEq for RuntimeMapping
Auto Trait Implementations§
impl Freeze for RuntimeMapping
impl RefUnwindSafe for RuntimeMapping
impl Send for RuntimeMapping
impl Sync for RuntimeMapping
impl Unpin for RuntimeMapping
impl UnwindSafe for RuntimeMapping
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