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

pub enum Value {
    Str(String),
    U64(u64),
    I64(i64),
    Facet(Facet),
}

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

Methods

impl Value
[src]

[src]

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

Panics

If the value is not of type Str

[src]

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

Panics

If the value is not of type U64

[src]

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]

[src]

Formats the value using the given formatter. Read more

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Value
[src]

impl PartialEq for Value
[src]

[src]

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

[src]

This method tests for !=.

impl Ord for Value
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Value
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

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]

[src]

Serialize this value into the given Serde serializer. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more

impl From<String> for Value
[src]

[src]

Performs the conversion.

impl From<u64> for Value
[src]

[src]

Performs the conversion.

impl From<i64> for Value
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.