ToSingleRedisArg in redis - Rust
Description: This trait marks that a value is serialized only into a single Redis value.

Skip to main content

## ToSingleRedisArg

# Trait ToSingleRedisArg

Source

    pub trait ToSingleRedisArg: ToRedisArgs { }

Expand description

This trait marks that a value is serialized only into a single Redis value.

This should be implemented only for types that are serialized into exactly one value, otherwise the compiler can’t ensure the correctness of some commands.

## Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

## Implementations on Foreign Types§

Source§

### impl ToSingleRedisArg for &str

Source§

### impl ToSingleRedisArg for &[u8]

Source§

### impl ToSingleRedisArg for &mut [u8]

Source§

### impl ToSingleRedisArg for bool

Source§

### impl ToSingleRedisArg for f32

Source§

### impl ToSingleRedisArg for f64

Source§

### impl ToSingleRedisArg for i8

Source§

### impl ToSingleRedisArg for i16

Source§

### impl ToSingleRedisArg for i32

Source§

### impl ToSingleRedisArg for i64

Source§

### impl ToSingleRedisArg for i128

Source§

### impl ToSingleRedisArg for isize

Source§

### impl ToSingleRedisArg for u8

Source§

### impl ToSingleRedisArg for u16

Source§

### impl ToSingleRedisArg for u32

Source§

### impl ToSingleRedisArg for u64

Source§

### impl ToSingleRedisArg for u128

Source§

### impl ToSingleRedisArg for usize

Source§

### impl ToSingleRedisArg for Box<[u8]>

Source§

### impl ToSingleRedisArg for Rc<[u8]>

Source§

### impl ToSingleRedisArg for String

Source§

### impl ToSingleRedisArg for Arc<[u8]>

Source§

### impl ToSingleRedisArg for Vec<u8>

Source§

### impl ToSingleRedisArg for BigInt

Source§

### impl ToSingleRedisArg for BigUint

Source§

### impl ToSingleRedisArg for Uuid

Available on crate feature `uuid` only.
Source§

### impl ToSingleRedisArg for NonZeroI8

Source§

### impl ToSingleRedisArg for NonZeroI16

Source§

### impl ToSingleRedisArg for NonZeroI32

Source§

### impl ToSingleRedisArg for NonZeroI64

Source§

### impl ToSingleRedisArg for NonZeroI128

Source§

### impl ToSingleRedisArg for NonZeroIsize

Source§

### impl ToSingleRedisArg for NonZeroU8

Source§

### impl ToSingleRedisArg for NonZeroU16

Source§

### impl ToSingleRedisArg for NonZeroU32

Source§

### impl ToSingleRedisArg for NonZeroU64

Source§

### impl ToSingleRedisArg for NonZeroU128

Source§

### impl ToSingleRedisArg for NonZeroUsize

Source§

### impl ToSingleRedisArg for BigDecimal

Source§

### impl ToSingleRedisArg for Decimal

Source§

### impl<'a, T> ToSingleRedisArg for Cow<'a, T>
where T: ToOwned + ?Sized, &'a T: ToSingleRedisArg, T::Owned: ToSingleRedisArg,

Source§

### impl<'a, T> ToSingleRedisArg for &'a T
where T: ToSingleRedisArg,

Source§

### impl<'a, T> ToSingleRedisArg for &'a mut T
where T: ToSingleRedisArg,

Source§

### impl<'a, T> ToSingleRedisArg for Box<T>
where T: ToSingleRedisArg,

Source§

### impl<'a, T> ToSingleRedisArg for Rc<T>
where T: ToSingleRedisArg,

Source§

### impl<'a, T> ToSingleRedisArg for Arc<T>
where T: ToSingleRedisArg,

Source§

### impl<const N: usize> ToSingleRedisArg for &[u8; N]

## Implementors§

Source§

### impl ToSingleRedisArg for Direction

Source§

### impl ToSingleRedisArg for Unit

Available on crate feature `geospatial` only.
Source§

### impl ToSingleRedisArg for StreamDeletionPolicy

Available on crate feature `streams` only.
Source§

### impl ToSingleRedisArg for FlushAllOptions

Source§

### impl<Db: ToString> ToSingleRedisArg for CopyOptions<Db>