Enum tantivy::schema::Value [−][src]
pub enum Value { Str(String), PreTokStr(PreTokenizedString), U64(u64), I64(i64), F64(f64), Date(DateTime), Facet(Facet), Bytes(Vec<u8>), }
Expand description
Value represents the value of a any field. It is an enum over all over all of the possible field type.
Variants
Str(String)
The str type is used for any text information.
PreTokStr(PreTokenizedString)
Pre-tokenized str type,
U64(u64)
Unsigned 64-bits Integer u64
I64(i64)
Signed 64-bits Integer i64
F64(f64)
64-bits Float f64
Date(DateTime)
Signed 64-bits Date time stamp date
Facet(Facet)
Hierarchical Facet
Arbitrarily sized byte array
Implementations
Returns the text value, provided the value is of the Str
type.
(Returns None if the value is not of the Str
type).
Returns the path value, provided the value is of the Facet
type.
(Returns None if the value is not of the Facet
type).
Returns the tokenized text, provided the value is of the PreTokStr
type.
Returns None if the value is not of the PreTokStr
type.
Returns the u64-value, provided the value is of the U64
type.
Returns None if the value is not of the U64
type.
Returns the i64-value, provided the value is of the I64
type.
Return None if the value is not of type I64
.
Returns the f64-value, provided the value is of the F64
type.
Return None if the value is not of type F64
.
Returns the Date-value, provided the value is of the Date
type.
Returns None if the value is not of type Date
.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V