Enum tantivy::schema::Value [−][src]
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.
U64(u64)
Unsigned 64-bits Integer u64
I64(i64)
Signed 64-bits Integer i64
Facet(Facet)
Hierarchical Facet
Bytes(Vec<u8>)
Arbitrarily sized byte array
Methods
impl Value
[src]
impl Value
pub fn text(&self) -> &str
[src]
pub fn text(&self) -> &str
Returns the text value, provided the value is of the Str
type.
Panics
If the value is not of type Str
pub fn u64_value(&self) -> u64
[src]
pub fn u64_value(&self) -> u64
Returns the u64-value, provided the value is of the U64
type.
Panics
If the value is not of type U64
pub fn i64_value(&self) -> i64
[src]
pub fn i64_value(&self) -> i64
Returns the i64-value, provided the value is of the I64
type.
Panics
If the value is not of type I64
Trait Implementations
impl Debug for Value
[src]
impl Debug for Value
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Value
[src]
impl Clone for Value
fn clone(&self) -> Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for Value
[src]
impl Eq for Value
impl PartialEq for Value
[src]
impl PartialEq for Value
fn eq(&self, other: &Value) -> bool
[src]
fn eq(&self, other: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Value) -> bool
[src]
fn ne(&self, other: &Value) -> bool
This method tests for !=
.
impl Ord for Value
[src]
impl Ord for Value
fn cmp(&self, other: &Value) -> Ordering
[src]
fn cmp(&self, other: &Value) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Value
[src]
impl PartialOrd for Value
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Value) -> bool
[src]
fn lt(&self, other: &Value) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Value) -> bool
[src]
fn le(&self, other: &Value) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Value) -> bool
[src]
fn gt(&self, other: &Value) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Value) -> bool
[src]
fn ge(&self, other: &Value) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Serialize for Value
[src]
impl Serialize for Value
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Value
[src]
impl<'de> Deserialize<'de> for Value
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl From<String> for Value
[src]
impl From<String> for Value
impl From<u64> for Value
[src]
impl From<u64> for Value
impl From<i64> for Value
[src]
impl From<i64> for Value
impl<'a> From<&'a str> for Value
[src]
impl<'a> From<&'a str> for Value
impl<'a> From<Facet> for Value
[src]
impl<'a> From<Facet> for Value
impl From<Vec<u8>> for Value
[src]
impl From<Vec<u8>> for Value