Struct fred::types::MultipleKeys
source · pub struct MultipleKeys { /* private fields */ }Expand description
Convenience struct for commands that take 1 or more keys.
Note: this can also be used to represent an empty array of keys by passing None to any function that takes
Into<MultipleKeys>. This is mostly useful for EVAL and EVALSHA.
Implementations§
source§impl MultipleKeys
impl MultipleKeys
pub fn new() -> MultipleKeys
pub fn inner(self) -> Vec<RedisKey>
pub fn into_values(self) -> Vec<RedisValue>
pub fn len(&self) -> usize
Trait Implementations§
source§impl Clone for MultipleKeys
impl Clone for MultipleKeys
source§fn clone(&self) -> MultipleKeys
fn clone(&self) -> MultipleKeys
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 MultipleKeys
impl Debug for MultipleKeys
source§impl From<()> for MultipleKeys
impl From<()> for MultipleKeys
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>> From<(A0, A1, A2)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>> From<(A0, A1, A2)> for MultipleKeys
source§fn from(value: (A0, A1, A2)) -> Self
fn from(value: (A0, A1, A2)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>> From<(A0, A1, A2, A3)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>> From<(A0, A1, A2, A3)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3)) -> Self
fn from(value: (A0, A1, A2, A3)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>> From<(A0, A1, A2, A3, A4)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>> From<(A0, A1, A2, A3, A4)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4)) -> Self
fn from(value: (A0, A1, A2, A3, A4)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)> for MultipleKeys
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)> for MultipleKeys
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13),
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13), ) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>, A14: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>, A14: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)> for MultipleKeys
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14),
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14), ) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>, A14: Into<RedisKey>, A15: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>, A14: Into<RedisKey>, A15: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)> for MultipleKeys
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15),
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15), ) -> Self
Converts to this type from the input type.
source§impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>, A14: Into<RedisKey>, A15: Into<RedisKey>, A16: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)> for MultipleKeys
impl<A0: Into<RedisKey>, A1: Into<RedisKey>, A2: Into<RedisKey>, A3: Into<RedisKey>, A4: Into<RedisKey>, A5: Into<RedisKey>, A6: Into<RedisKey>, A7: Into<RedisKey>, A8: Into<RedisKey>, A9: Into<RedisKey>, A10: Into<RedisKey>, A11: Into<RedisKey>, A12: Into<RedisKey>, A13: Into<RedisKey>, A14: Into<RedisKey>, A15: Into<RedisKey>, A16: Into<RedisKey>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)> for MultipleKeys
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16),
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16), ) -> Self
Converts to this type from the input type.
source§impl<T> From<T> for MultipleKeys
impl<T> From<T> for MultipleKeys
source§impl<T> From<Vec<T>> for MultipleKeys
impl<T> From<Vec<T>> for MultipleKeys
source§impl<T> From<VecDeque<T>> for MultipleKeys
impl<T> From<VecDeque<T>> for MultipleKeys
source§impl<T> FromIterator<T> for MultipleKeys
impl<T> FromIterator<T> for MultipleKeys
source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl PartialEq for MultipleKeys
impl PartialEq for MultipleKeys
impl Eq for MultipleKeys
impl StructuralPartialEq for MultipleKeys
Auto Trait Implementations§
impl Freeze for MultipleKeys
impl RefUnwindSafe for MultipleKeys
impl Send for MultipleKeys
impl Sync for MultipleKeys
impl Unpin for MultipleKeys
impl UnwindSafe for MultipleKeys
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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