pub struct StreamAutoClaimReply {
pub next_stream_id: String,
pub claimed: Vec<StreamId>,
pub deleted_ids: Vec<String>,
pub invalid_entries: bool,
}Expand description
Reply type used with the xautoclaim_options command.
Fields§
§next_stream_id: StringThe next stream id to use as the start argument for the next xautoclaim
claimed: Vec<StreamId>The entries claimed for the consumer. When JUSTID is enabled the map in each entry is blank
deleted_ids: Vec<String>The list of stream ids that were removed due to no longer being in the stream
invalid_entries: boolIf set, this means that the reply contained invalid nil entries, that were skipped during parsing.
This should only happen when using Redis 6, see https://github.com/redis-rs/redis-rs/issues/1798
Trait Implementations§
Source§impl Clone for StreamAutoClaimReply
impl Clone for StreamAutoClaimReply
Source§fn clone(&self) -> StreamAutoClaimReply
fn clone(&self) -> StreamAutoClaimReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamAutoClaimReply
impl Debug for StreamAutoClaimReply
Source§impl Default for StreamAutoClaimReply
impl Default for StreamAutoClaimReply
Source§fn default() -> StreamAutoClaimReply
fn default() -> StreamAutoClaimReply
Returns the “default value” for a type. Read more
Source§impl FromRedisValue for StreamAutoClaimReply
impl FromRedisValue for StreamAutoClaimReply
Source§fn from_redis_value(v: Value) -> Result<StreamAutoClaimReply, ParsingError>
fn from_redis_value(v: Value) -> Result<StreamAutoClaimReply, ParsingError>
Given a redis
Value this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_redis_value_ref(v: &Value) -> Result<Self, ParsingError>
fn from_redis_value_ref(v: &Value) -> Result<Self, ParsingError>
Given a redis
Value this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_redis_value_refs(items: &[Value]) -> Result<Vec<Self>, ParsingError>
fn from_redis_value_refs(items: &[Value]) -> Result<Vec<Self>, ParsingError>
Similar to
from_redis_value_ref but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.Source§fn from_redis_values(items: Vec<Value>) -> Result<Vec<Self>, ParsingError>
fn from_redis_values(items: Vec<Value>) -> Result<Vec<Self>, ParsingError>
The same as
from_redis_value_refs, but takes a Vec<Value> instead
of a &[Value].Source§fn from_each_redis_values(items: Vec<Value>) -> Vec<Result<Self, ParsingError>>
fn from_each_redis_values(items: Vec<Value>) -> Vec<Result<Self, ParsingError>>
The same as
from_redis_values, but returns a result for each
conversion to make handling them case-by-case possible.Source§fn from_byte_slice(_vec: &[u8]) -> Option<Vec<Self>>
fn from_byte_slice(_vec: &[u8]) -> Option<Vec<Self>>
Convert bytes to a single element vector.
Source§fn from_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, ParsingError>
fn from_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, ParsingError>
Convert bytes to a single element vector.
Auto Trait Implementations§
impl Forget for StreamAutoClaimReply
impl Freeze for StreamAutoClaimReplywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<StreamId>: Freeze,
PhantomData<String>: Freeze,
impl Move for StreamAutoClaimReply
impl RefUnwindSafe for StreamAutoClaimReply
impl Send for StreamAutoClaimReply
impl Sync for StreamAutoClaimReply
impl Unpin for StreamAutoClaimReply
impl UnsafeUnpin for StreamAutoClaimReplywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<StreamId>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for StreamAutoClaimReply
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromRedisValue for Twhere
T: FromRedisValue,
impl<T> FromRedisValue for Twhere
T: FromRedisValue,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.