[][src]Struct tantivy::schema::FieldEntry

pub struct FieldEntry { /* fields omitted */ }

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]

impl Eq for FieldEntry[src]

impl PartialEq<FieldEntry> for FieldEntry[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]

Auto Trait Implementations

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]