pub struct FieldInfo {
pub name: String,
pub full_name: String,
pub description: String,
pub term_count: Option<u64>,
pub is_date: bool,
pub is_numerical: bool,
pub single_token: bool,
pub hierarchy: bool,
pub is_hidden: bool,
}Expand description
Information about a database search field
Fields§
§name: StringShort field name (e.g., “titl”, “auth”)
full_name: StringFull field name (e.g., “Title”, “Author”)
description: StringField description
term_count: Option<u64>Number of indexed terms
is_date: boolWhether field contains dates
is_numerical: boolWhether field contains numerical values
single_token: boolWhether field uses single token indexing
hierarchy: boolWhether field uses hierarchical indexing
Whether field is hidden from users
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldInfo
impl<'de> Deserialize<'de> for FieldInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FieldInfo
impl RefUnwindSafe for FieldInfo
impl Send for FieldInfo
impl Sync for FieldInfo
impl Unpin for FieldInfo
impl UnwindSafe for FieldInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more