pub struct DefaultLongMapping;Expand description
Default mapping for a long type.
Trait Implementations§
Source§impl Clone for DefaultLongMapping
impl Clone for DefaultLongMapping
Source§fn clone(&self) -> DefaultLongMapping
fn clone(&self) -> DefaultLongMapping
Returns a duplicate 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 DefaultLongMapping
impl Debug for DefaultLongMapping
Source§impl Default for DefaultLongMapping
impl Default for DefaultLongMapping
Source§fn default() -> DefaultLongMapping
fn default() -> DefaultLongMapping
Returns the “default value” for a type. Read more
Source§impl LongMapping for DefaultLongMapping
impl LongMapping for DefaultLongMapping
Source§fn coerce() -> Option<bool>
fn coerce() -> Option<bool>
Try to convert strings to numbers and truncate fractions for integers. Accepts
true (default) and false.Source§fn boost() -> Option<f32>
fn boost() -> Option<f32>
Field-level index time boosting. Accepts a floating point number, defaults to
1.0.Source§fn doc_values() -> Option<bool>
fn doc_values() -> Option<bool>
Should the field be stored on disk in a column-stride fashion,
so that it can later be used for sorting, aggregations, or scripting?
Accepts
true (default) or false.Source§fn ignore_malformed() -> Option<bool>
fn ignore_malformed() -> Option<bool>
If
true, malformed numbers are ignored. If false (default),
malformed numbers throw an exception and reject the whole document.Source§fn include_in_all() -> Option<bool>
fn include_in_all() -> Option<bool>
Whether or not the field value should be included in the
_all field?
Accepts true or false. Defaults to false if index is set to no,
or if a parent object field sets include_in_all to false.
Otherwise defaults to true.Source§fn index() -> Option<bool>
fn index() -> Option<bool>
Should the field be searchable? Accepts
not_analyzed (default) and no.Source§fn null_value() -> Option<i64>
fn null_value() -> Option<i64>
Accepts a numeric value of the same type as the field which is substituted for any explicit null values.
Defaults to
null, which means the field is treated as missing.Source§impl PartialEq for DefaultLongMapping
impl PartialEq for DefaultLongMapping
impl Copy for DefaultLongMapping
impl LongFieldType<DefaultLongMapping> for i64
impl LongFieldType<DefaultLongMapping> for isize
impl StructuralPartialEq for DefaultLongMapping
Auto Trait Implementations§
impl Freeze for DefaultLongMapping
impl RefUnwindSafe for DefaultLongMapping
impl Send for DefaultLongMapping
impl Sync for DefaultLongMapping
impl Unpin for DefaultLongMapping
impl UnwindSafe for DefaultLongMapping
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.