Struct ocypod::models::job::ExpiryMeta
source · pub struct ExpiryMeta(_);
Implementations
sourceimpl ExpiryMeta
impl ExpiryMeta
pub fn from_conn<K: ToRedisArgs>(conn: &Connection, key: K) -> OcyResult<Self>
pub fn id(&self) -> u64
pub fn fields() -> &'static [Field]
pub fn should_expire(&self) -> bool
Trait Implementations
sourceimpl FromRedisValue for ExpiryMeta
impl FromRedisValue for ExpiryMeta
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 moreAuto Trait Implementations
impl RefUnwindSafe for ExpiryMeta
impl Send for ExpiryMeta
impl Sync for ExpiryMeta
impl Unpin for ExpiryMeta
impl UnwindSafe for ExpiryMeta
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