pub struct JsonSetOptions<'a> { /* private fields */ }Expand description
Options for the json_set command
Implementations§
Source§impl<'a> JsonSetOptions<'a>
impl<'a> JsonSetOptions<'a>
Sourcepub fn condition(self, condition: SetCondition<'a>) -> Self
pub fn condition(self, condition: SetCondition<'a>) -> Self
Sourcepub fn fpha(self, fp_type: JsonFpType) -> Self
pub fn fpha(self, fp_type: JsonFpType) -> Self
Forces floating-point homogeneous arrays to use the given type.
JSON stores numbers as text, so the server cannot infer the type an
array of floats was produced with. Declaring it trades precision for
memory: FP64 and FP32 keep more of it, BF16 and FP16 halve the
footprint of FP32. A value that does not fit the declared type makes
the command fail with a value out of range error.
Trait Implementations§
Source§impl<'a> Default for JsonSetOptions<'a>
impl<'a> Default for JsonSetOptions<'a>
Source§impl<'a> From<SetCondition<'a>> for JsonSetOptions<'a>
impl<'a> From<SetCondition<'a>> for JsonSetOptions<'a>
Source§fn from(condition: SetCondition<'a>) -> Self
fn from(condition: SetCondition<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for JsonSetOptions<'a>
impl<'a> RefUnwindSafe for JsonSetOptions<'a>
impl<'a> Send for JsonSetOptions<'a>
impl<'a> Sync for JsonSetOptions<'a>
impl<'a> Unpin for JsonSetOptions<'a>
impl<'a> UnsafeUnpin for JsonSetOptions<'a>
impl<'a> UnwindSafe for JsonSetOptions<'a>
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