Enum rustis::commands::FtFieldType
source · pub enum FtFieldType {
Text,
Tag,
Numeric,
Geo,
Vector(Option<FtVectorFieldAlgorithm>),
}
Available on crate feature
redis-search
only.Expand description
Field type used to declare an index schema
for the ft_create
command
Variants§
Text
Allows full-text search queries against the value in this attribute.
Tag
Allows exact-match queries, such as categories or primary keys, against the value in this attribute.
For more information,
see Tag Fields
.
Numeric
Allows numeric range queries against the value in this attribute.
See query syntax docs
for details on how to use numeric ranges.
Geo
Allows geographic range queries against the value in this attribute.
The value of the attribute must be a string containing a longitude (first) and latitude separated by a comma.
Vector(Option<FtVectorFieldAlgorithm>)
Allows vector similarity queries against the value in this attribute.
For more information, see Vector Fields
.
Trait Implementations§
source§impl Debug for FtFieldType
impl Debug for FtFieldType
source§impl Default for FtFieldType
impl Default for FtFieldType
source§fn default() -> FtFieldType
fn default() -> FtFieldType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FtFieldType
impl<'de> Deserialize<'de> for FtFieldType
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
source§impl ToArgs for FtFieldType
impl ToArgs for FtFieldType
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for FtFieldType
impl RefUnwindSafe for FtFieldType
impl Send for FtFieldType
impl Sync for FtFieldType
impl Unpin for FtFieldType
impl UnwindSafe for FtFieldType
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