pub enum FieldShape {
Flat,
Pairs,
Map,
}Expand description
Explicit shape tag for stream-entry field payloads. Passed from the caller because each code path knows which shape ferriskey will emit — heuristic detection (“first entry looks like a 2-elem array”) can mis-classify when field values happen to be arrays themselves.
Variants§
Flat
Flat alternating [k, v, k, v, ...]. Emitted by raw Lua FCALL
replies and by RESP2 servers that bypass the ArrayOfPairs adapter.
Pairs
[[k, v], [k, v], ...] — ferriskey’s ArrayOfPairs adapter for
XRANGE / XREAD direct commands.
Map
RESP3 {k: v, ...} map.
Trait Implementations§
Source§impl Clone for FieldShape
impl Clone for FieldShape
Source§fn clone(&self) -> FieldShape
fn clone(&self) -> FieldShape
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldShape
impl Debug for FieldShape
impl Copy for FieldShape
Auto Trait Implementations§
impl Freeze for FieldShape
impl RefUnwindSafe for FieldShape
impl Send for FieldShape
impl Sync for FieldShape
impl Unpin for FieldShape
impl UnsafeUnpin for FieldShape
impl UnwindSafe for FieldShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more