Struct tantivy::schema::FieldEntry
[−]
[src]
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_facet(field_name: String) -> FieldEntry
[src]
Creates a field entry for a facet.
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]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FieldEntry
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Serialize for FieldEntry
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for FieldEntry
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more