Enum tantivy::schema::Value[][src]

pub enum Value {
    Str(String),
    U64(u64),
    I64(i64),
    Facet(Facet),
    Bytes(Vec<u8>),
}

Value represents the value of a any field. It is an enum over all over all of the possible field type.

Variants

The str type is used for any text information.

Unsigned 64-bits Integer u64

Signed 64-bits Integer i64

Hierarchical Facet

Arbitrarily sized byte array

Methods

impl Value
[src]

Returns the text value, provided the value is of the Str type.

Panics

If the value is not of type Str

Returns the u64-value, provided the value is of the U64 type.

Panics

If the value is not of type U64

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]

Formats the value using the given formatter. Read more

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Value
[src]

impl PartialEq for Value
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for Value
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for Value
[src]

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

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]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Value
[src]

Deserialize this value from the given Serde deserializer. Read more

impl From<String> for Value
[src]

Performs the conversion.

impl From<u64> for Value
[src]

Performs the conversion.

impl From<i64> for Value
[src]

Performs the conversion.

impl<'a> From<&'a str> for Value
[src]

Performs the conversion.

impl<'a> From<Facet> for Value
[src]

Performs the conversion.

impl From<Vec<u8>> for Value
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Value

impl Sync for Value