pub struct RedisCommand {
pub command: String,
pub arguments: Option<Vec<String>>,
pub url: Url,
}Expand description
The processor configuration.
Fields§
§command: StringThe main Redis command to execute.
See the main Redis documentation for a list of available commands.
arguments: Option<Vec<String>>The arguments belonging to the main command.
The acceptable value of these arguments depends on the command being executed.
url: UrlThe URL of the Redis server.
See the redis-rs “connection parameters” documentation for more details.
Trait Implementations§
Source§impl Clone for RedisCommand
impl Clone for RedisCommand
Source§fn clone(&self) -> RedisCommand
fn clone(&self) -> RedisCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RedisCommand
impl Debug for RedisCommand
Source§impl<'de> Deserialize<'de> for RedisCommand
impl<'de> Deserialize<'de> for RedisCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for RedisCommand
impl PartialEq for RedisCommand
Source§impl<'a> Processor<'a> for RedisCommand
impl<'a> Processor<'a> for RedisCommand
Source§fn run(&self, _context: &Context) -> Result<Option<Self::Output>, Self::Error>
fn run(&self, _context: &Context) -> Result<Option<Self::Output>, Self::Error>
Run the configured Redis command, and return its results.
§Output
The value returned by the Redis server is fairly untyped, and not always
easily represented in the final output. In general, the most common
values are correctly mapped, such as Nil becoming None, and all
valid UTF-8 data is returned as Some, containing the data as a string.
Any value that cannot be coerced into a valid UTF-8 string, is represented in the best possible way as a valid UTF-8 string, but won’t completely match the original output of Redis.
§Errors
See the Error enum for all possible error values that can be
returned. These values wrap the redis::ErrorKind values.
Source§const NAME: &'static str = "Redis Command"
const NAME: &'static str = "Redis Command"
Source§type Error = Error
type Error = Error
automaat-web-client application.Source§impl Serialize for RedisCommand
impl Serialize for RedisCommand
impl Eq for RedisCommand
impl StructuralPartialEq for RedisCommand
Auto Trait Implementations§
impl Freeze for RedisCommand
impl RefUnwindSafe for RedisCommand
impl Send for RedisCommand
impl Sync for RedisCommand
impl Unpin for RedisCommand
impl UnwindSafe for RedisCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more