pub struct StreamingKey(/* private fields */);
Expand description
The secret key of a streaming target
Implementations§
Trait Implementations§
Source§impl<'__expr> AsExpression<Nullable<Text>> for &'__expr StreamingKey
impl<'__expr> AsExpression<Nullable<Text>> for &'__expr StreamingKey
Source§type Expression = Bound<Nullable<Text>, &'__expr StreamingKey>
type Expression = Bound<Nullable<Text>, &'__expr StreamingKey>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
Perform the conversion
Source§impl AsExpression<Nullable<Text>> for StreamingKey
impl AsExpression<Nullable<Text>> for StreamingKey
Source§type Expression = Bound<Nullable<Text>, StreamingKey>
type Expression = Bound<Nullable<Text>, StreamingKey>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
fn as_expression(self) -> <Self as AsExpression<Nullable<Text>>>::Expression
Perform the conversion
Source§impl<'__expr> AsExpression<Text> for &'__expr StreamingKey
impl<'__expr> AsExpression<Text> for &'__expr StreamingKey
Source§type Expression = Bound<Text, &'__expr StreamingKey>
type Expression = Bound<Text, &'__expr StreamingKey>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
Perform the conversion
Source§impl AsExpression<Text> for StreamingKey
impl AsExpression<Text> for StreamingKey
Source§type Expression = Bound<Text, StreamingKey>
type Expression = Bound<Text, StreamingKey>
The expression being returned
Source§fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
fn as_expression(self) -> <Self as AsExpression<Text>>::Expression
Perform the conversion
Source§impl AsRef<String> for StreamingKey
impl AsRef<String> for StreamingKey
Source§impl Clone for StreamingKey
impl Clone for StreamingKey
Source§fn clone(&self) -> StreamingKey
fn clone(&self) -> StreamingKey
Returns a duplicate 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 ComposeSchema for StreamingKey
impl ComposeSchema for StreamingKey
Source§impl Debug for StreamingKey
impl Debug for StreamingKey
Source§impl<'de> Deserialize<'de> for StreamingKey
impl<'de> Deserialize<'de> for StreamingKey
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StreamingKey
impl Display for StreamingKey
Source§impl ExampleData for StreamingKey
impl ExampleData for StreamingKey
Source§fn example_data() -> Self
fn example_data() -> Self
Get an example instance of the current datatype.
Source§impl From<StreamingKey> for String
impl From<StreamingKey> for String
Source§fn from(value: StreamingKey) -> Self
fn from(value: StreamingKey) -> Self
Converts to this type from the input type.
Source§impl From<String> for StreamingKey
impl From<String> for StreamingKey
Source§impl FromRedisValue for StreamingKey
impl FromRedisValue for StreamingKey
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_owned_redis_value(v: Value) -> Result<Self, RedisError>
fn from_owned_redis_value(v: Value) -> Result<Self, RedisError>
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>, RedisError>
fn from_redis_values(items: &[Value]) -> Result<Vec<Self>, 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.Source§fn from_owned_redis_values(items: Vec<Value>) -> Result<Vec<Self>, RedisError>
fn from_owned_redis_values(items: Vec<Value>) -> Result<Vec<Self>, RedisError>
The same as
from_redis_values
, but takes a Vec<Value>
instead
of a &[Value]
.Source§fn from_each_owned_redis_values(
items: Vec<Value>,
) -> Vec<Result<Self, RedisError>>
fn from_each_owned_redis_values( items: Vec<Value>, ) -> Vec<Result<Self, RedisError>>
The same as
from_owned_redis_values
, but returns a result for each
conversion to make handling them case-by-case possible.Source§fn from_owned_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, RedisError>
fn from_owned_byte_vec(_vec: Vec<u8>) -> Result<Vec<Self>, RedisError>
Convert bytes to a single element vector.
Source§impl<DB> FromSql<Text, DB> for StreamingKey
impl<DB> FromSql<Text, DB> for StreamingKey
Source§impl FromStr for StreamingKey
impl FromStr for StreamingKey
Source§impl Hash for StreamingKey
impl Hash for StreamingKey
Source§impl Ord for StreamingKey
impl Ord for StreamingKey
Source§fn cmp(&self, other: &StreamingKey) -> Ordering
fn cmp(&self, other: &StreamingKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamingKey
impl PartialEq for StreamingKey
Source§impl PartialOrd for StreamingKey
impl PartialOrd for StreamingKey
Source§impl<__DB, __ST> Queryable<__ST, __DB> for StreamingKey
impl<__DB, __ST> Queryable<__ST, __DB> for StreamingKey
Source§impl Serialize for StreamingKey
impl Serialize for StreamingKey
Source§impl ToRedisArgs for StreamingKey
impl ToRedisArgs for StreamingKey
Source§fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
Source§fn to_redis_args(&self) -> Vec<Vec<u8>>
fn to_redis_args(&self) -> Vec<Vec<u8>>
This converts the value into a vector of bytes. Each item
is a single argument. Most items generate a vector of a
single item. Read more
Source§fn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance
INCR
vs INCRBYFLOAT
).Source§fn num_of_args(&self) -> usize
fn num_of_args(&self) -> usize
Returns the number of arguments this value will generate. Read more
Source§impl ToSchema for StreamingKey
impl ToSchema for StreamingKey
Source§impl<DB> ToSql<Text, DB> for StreamingKey
impl<DB> ToSql<Text, DB> for StreamingKey
impl DieselNewtype<Text> for StreamingKey
impl Eq for StreamingKey
impl StructuralPartialEq for StreamingKey
Auto Trait Implementations§
impl Freeze for StreamingKey
impl RefUnwindSafe for StreamingKey
impl Send for StreamingKey
impl Sync for StreamingKey
impl Unpin for StreamingKey
impl UnwindSafe for StreamingKey
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
Source§impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
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 moreSource§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read moreSource§impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
Source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.