pub trait ToSingleValkeyArg: ToValkeyArgs { }Expand description
Encodes a value into exactly one command argument.
Implemented for these standard argument types:
- integers
- non-zero integers
- floats
- byte slices
- booleans
- strings
- bytes
- references
Implement it for your own types to pass them directly as command arguments.
Mirrors redis-rs’s ToSingleRedisArg.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".