[−][src]Enum tantivy::schema::Value
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
F64(f64)
64-bits Float f64
Date(DateTime)
Signed 64-bits Date time stamp date
Facet(Facet)
Hierarchical Facet
Arbitrarily sized byte array
Methods
impl Value
[src]
pub fn text(&self) -> Option<&str>
[src]
Returns the text value, provided the value is of the Str
type.
(Returns None if the value is not of the Str
type).
pub fn u64_value(&self) -> u64
[src]
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]
Returns the i64-value, provided the value is of the I64
type.
Panics
If the value is not of type I64
pub fn f64_value(&self) -> f64
[src]
Returns the f64-value, provided the value is of the F64
type.
Panics
If the value is not of type F64
pub fn date_value(&self) -> &DateTime
[src]
Returns the Date-value, provided the value is of the Date
type.
Panics
If the value is not of type Date
Trait Implementations
impl From<String> for Value
[src]
impl From<u64> for Value
[src]
impl From<i64> for Value
[src]
impl From<f64> for Value
[src]
impl From<DateTime<Utc>> for Value
[src]
impl<'a> From<&'a str> for Value
[src]
impl<'a> From<Facet> for Value
[src]
impl From<Vec<u8>> for Value
[src]
impl Clone for Value
[src]
impl Eq for Value
[src]
impl Ord for Value
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Value> for Value
[src]
impl PartialOrd<Value> for Value
[src]
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
[src]
fn lt(&self, other: &Value) -> bool
[src]
fn le(&self, other: &Value) -> bool
[src]
fn gt(&self, other: &Value) -> bool
[src]
fn ge(&self, other: &Value) -> bool
[src]
impl Debug for Value
[src]
impl StructuralPartialEq for Value
[src]
impl Serialize for Value
[src]
impl<'de> Deserialize<'de> for Value
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
impl RefUnwindSafe for Value
Blanket Implementations
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,