Struct redis_graph::SlowLogEntry
source · pub struct SlowLogEntry {
pub timestamp: u64,
pub command: String,
pub query: String,
pub time: f64,
}
Expand description
Represents an entry returned from the GRAPH.SLOWLOG command.
Fields§
§timestamp: u64
A unix timestamp at which the log entry was processed.
command: String
The issued command.
query: String
The issued query.
time: f64
The amount of time needed for its execution, in milliseconds.
Trait Implementations§
source§impl Clone for SlowLogEntry
impl Clone for SlowLogEntry
source§fn clone(&self) -> SlowLogEntry
fn clone(&self) -> SlowLogEntry
Returns a copy 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 SlowLogEntry
impl Debug for SlowLogEntry
source§impl Default for SlowLogEntry
impl Default for SlowLogEntry
source§fn default() -> SlowLogEntry
fn default() -> SlowLogEntry
Returns the “default value” for a type. Read more
source§impl FromRedisValue for SlowLogEntry
impl FromRedisValue for SlowLogEntry
source§fn 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.source§fn 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.Auto Trait Implementations§
impl RefUnwindSafe for SlowLogEntry
impl Send for SlowLogEntry
impl Sync for SlowLogEntry
impl Unpin for SlowLogEntry
impl UnwindSafe for SlowLogEntry
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