pub struct FtSearchReturnAttribute { /* private fields */ }
Available on crate feature
redis-search
only.Implementations§
Source§impl FtSearchReturnAttribute
impl FtSearchReturnAttribute
Sourcepub fn identifier(identifier: impl SingleArg) -> Self
pub fn identifier(identifier: impl SingleArg) -> Self
identifier
is either an attribute name (for hashes and JSON) or a JSON Path expression (for JSON).
Sourcepub fn as_property(self, property: impl SingleArg) -> Self
pub fn as_property(self, property: impl SingleArg) -> Self
property
is an optional name used in the result.
If not provided, the identifier
is used in the result.
Trait Implementations§
Source§impl ToArgs for FtSearchReturnAttribute
impl ToArgs for FtSearchReturnAttribute
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 FtSearchReturnAttribute
impl RefUnwindSafe for FtSearchReturnAttribute
impl Send for FtSearchReturnAttribute
impl Sync for FtSearchReturnAttribute
impl Unpin for FtSearchReturnAttribute
impl UnwindSafe for FtSearchReturnAttribute
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