[−][src]Struct tantivy::schema::FieldEntry
A FieldEntry
represents a field and its configuration.
Schema
are a collection of FieldEntry
It consists of
- a field name
- a field type, itself wrapping up options describing how the field should be indexed.
Methods
impl FieldEntry
[src]
pub fn new_text(field_name: String, text_options: TextOptions) -> FieldEntry
[src]
Creates a new u64 field entry in the schema, given a name, and some options.
pub fn new_u64(field_name: String, field_type: IntOptions) -> FieldEntry
[src]
Creates a new u64 field entry in the schema, given a name, and some options.
pub fn new_i64(field_name: String, field_type: IntOptions) -> FieldEntry
[src]
Creates a new i64 field entry in the schema, given a name, and some options.
pub fn new_f64(field_name: String, field_type: IntOptions) -> FieldEntry
[src]
Creates a new f64 field entry in the schema, given a name, and some options.
pub fn new_date(field_name: String, field_type: IntOptions) -> FieldEntry
[src]
Creates a new date field entry in the schema, given a name, and some options.
pub fn new_facet(field_name: String) -> FieldEntry
[src]
Creates a field entry for a facet.
pub fn new_bytes(field_name: String) -> FieldEntry
[src]
Creates a field entry for a bytes field
pub fn name(&self) -> &str
[src]
Returns the name of the field
pub fn field_type(&self) -> &FieldType
[src]
Returns the field type
pub fn is_indexed(&self) -> bool
[src]
Returns true iff the field is indexed
pub fn is_int_fast(&self) -> bool
[src]
Returns true iff the field is a int (signed or unsigned) fast field
pub fn is_stored(&self) -> bool
[src]
Returns true iff the field is stored
Trait Implementations
impl Clone for FieldEntry
[src]
fn clone(&self) -> FieldEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for FieldEntry
[src]
impl PartialEq<FieldEntry> for FieldEntry
[src]
fn eq(&self, other: &FieldEntry) -> bool
[src]
fn ne(&self, other: &FieldEntry) -> bool
[src]
impl Debug for FieldEntry
[src]
impl StructuralPartialEq for FieldEntry
[src]
impl StructuralEq for FieldEntry
[src]
impl Serialize for FieldEntry
[src]
impl<'de> Deserialize<'de> for FieldEntry
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for FieldEntry
impl Sync for FieldEntry
impl Unpin for FieldEntry
impl UnwindSafe for FieldEntry
impl RefUnwindSafe for FieldEntry
Blanket Implementations
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,