pub struct Message {
pub id: String,
pub message: String,
pub rc: u64,
pub fr: u64,
pub sent: u64,
}
Fields§
§id: String
§message: String
§rc: u64
§fr: u64
§sent: u64
Implementations§
Trait Implementations§
Source§impl FromRedisValue for Message
impl FromRedisValue for Message
Source§fn from_redis_value(v: &Value) -> RedisResult<Message>
fn from_redis_value(v: &Value) -> RedisResult<Message>
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_values(items: &[Value]) -> Result<Vec<Self>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, 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.Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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