pub enum BeginSearch {
Index(BeginSearchIndex),
Keyword(BeginSearchKeyword),
}
Expand description
This struct represents how Redis should start looking for keys. There are 2 possible options:
- Index - start looking for keys from a given position.
- Keyword - Search for a specific keyward and start looking for keys from this keyword
Variants§
Index(BeginSearchIndex)
Keyword(BeginSearchKeyword)
Implementations§
Source§impl BeginSearch
impl BeginSearch
pub fn new_index(index: i32) -> BeginSearch
pub fn new_keyword(keyword: String, startfrom: i32) -> BeginSearch
Trait Implementations§
Source§impl From<&BeginSearch> for (RedisModuleKeySpecBeginSearchType, RedisModuleCommandKeySpec__bindgen_ty_1)
impl From<&BeginSearch> for (RedisModuleKeySpecBeginSearchType, RedisModuleCommandKeySpec__bindgen_ty_1)
Source§fn from(value: &BeginSearch) -> Self
fn from(value: &BeginSearch) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BeginSearch
impl RefUnwindSafe for BeginSearch
impl Send for BeginSearch
impl Sync for BeginSearch
impl Unpin for BeginSearch
impl UnwindSafe for BeginSearch
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