pub enum Field {
Show 17 variants
Id,
Queue,
Status,
Tags,
CreatedAt,
StartedAt,
EndedAt,
LastHeartbeat,
Input,
Output,
Timeout,
HeartbeatTimeout,
ExpiresAfter,
Retries,
RetriesAttempted,
RetryDelays,
Ended,
}
Expand description
Represents a job field that’s stored in a Redis hash.
Variants
Id
Queue
Status
Tags
CreatedAt
StartedAt
EndedAt
LastHeartbeat
Input
Output
Timeout
HeartbeatTimeout
ExpiresAfter
Retries
RetriesAttempted
RetryDelays
Ended
Implementations
sourceimpl Field
impl Field
pub fn all_fields() -> &'static [Field]
Trait Implementations
sourceimpl FromRedisValue for Field
impl FromRedisValue for Field
sourcefn from_redis_value(v: &Value) -> RedisResult<Self>
fn from_redis_value(v: &Value) -> RedisResult<Self>
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. Read moresourcefn from_redis_values(items: &[Value]) -> Result<Vec<Self, Global>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self, Global>, RedisError>
Similar to
from_redis_value
but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples. Read moresourceimpl ToRedisArgs for Field
impl ToRedisArgs for Field
sourcefn write_redis_args(&self, out: &mut Vec<Vec<u8>>)
fn write_redis_args(&self, out: &mut Vec<Vec<u8>>)
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
sourcefn to_redis_args(&self) -> Vec<Vec<u8, Global>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn to_redis_args(&self) -> Vec<Vec<u8, Global>, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
This converts the value into a vector of bytes. Each item
is a single argument. Most items generate a vector of a
single item. Read more
sourcefn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance
INCR
vs INCRBYFLOAT
). Read moresourcefn is_single_arg(&self) -> bool
fn is_single_arg(&self) -> bool
Returns an indiciation if the value contained is exactly one
argument. It returns false if it’s zero or more than one. This
is used in some high level functions to intelligently switch
between
GET
and MGET
variants. Read moreimpl Eq for Field
impl StructuralEq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.