pub struct JsonGetOptions { /* private fields */ }
Available on crate feature
redis-json
only.Expand description
Options for the json_get
command
Implementations§
Source§impl JsonGetOptions
impl JsonGetOptions
Sourcepub fn indent<I: SingleArg>(self, indent: I) -> Self
pub fn indent<I: SingleArg>(self, indent: I) -> Self
Sets the indentation string for nested levels.
Sourcepub fn newline<NL: SingleArg>(self, newline: NL) -> Self
pub fn newline<NL: SingleArg>(self, newline: NL) -> Self
Sets the string that’s printed at the end of each line.
Sourcepub fn space<S: SingleArg>(self, space: S) -> Self
pub fn space<S: SingleArg>(self, space: S) -> Self
Sets the string that’s put between a key and a value.
Sourcepub fn path<P: SingleArg, PP: SingleArgCollection<P>>(self, paths: PP) -> Self
pub fn path<P: SingleArg, PP: SingleArgCollection<P>>(self, paths: PP) -> Self
JSONPath to specify
Trait Implementations§
Source§impl Default for JsonGetOptions
impl Default for JsonGetOptions
Source§fn default() -> JsonGetOptions
fn default() -> JsonGetOptions
Returns the “default value” for a type. Read more
Source§impl ToArgs for JsonGetOptions
impl ToArgs for JsonGetOptions
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 JsonGetOptions
impl RefUnwindSafe for JsonGetOptions
impl Send for JsonGetOptions
impl Sync for JsonGetOptions
impl Unpin for JsonGetOptions
impl UnwindSafe for JsonGetOptions
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