pub struct slug;
Trait Implementations§
Source§impl Expression for slug
impl Expression for slug
Source§impl<DB> QueryFragment<DB> for slug
impl<DB> QueryFragment<DB> for slug
Source§impl QueryId for slug
impl QueryId for slug
Source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read moreSource§impl ValidGrouping<()> for slug
impl ValidGrouping<()> for slug
Source§type IsAggregate = No
type IsAggregate = No
Is this expression aggregate? Read more
Source§impl<__GB> ValidGrouping<__GB> for slugwhere
__GB: IsContainedInGroupBy<slug, Output = Yes>,
impl<__GB> ValidGrouping<__GB> for slugwhere
__GB: IsContainedInGroupBy<slug, Output = Yes>,
Source§type IsAggregate = Yes
type IsAggregate = Yes
Is this expression aggregate? Read more
impl<QS> AppearsOnTable<QS> for slug
impl Copy for slug
impl SelectableExpression<table> for slug
Auto Trait Implementations§
impl Freeze for slug
impl RefUnwindSafe for slug
impl Send for slug
impl Sync for slug
impl Unpin for slug
impl UnwindSafe for slug
Blanket Implementations§
Source§impl<T, ST> AsExpression<ST> for T
impl<T, ST> AsExpression<ST> for T
Source§type Expression = T
type Expression = T
The expression being returned
Source§fn as_expression(self) -> T
fn as_expression(self) -> T
Perform the conversion
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<Conn, DB, T> ExecuteDsl<Conn, DB> for T
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T
Source§impl<T> ExpressionMethods for T
impl<T> ExpressionMethods for T
Source§fn eq<T>(
self,
other: T,
) -> Grouped<Eq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn eq<T>( self, other: T, ) -> Grouped<Eq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
=
expression. Read moreSource§fn ne<T>(
self,
other: T,
) -> Grouped<NotEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn ne<T>( self, other: T, ) -> Grouped<NotEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
!=
expression. Read moreSource§fn eq_any<T>(
self,
values: T,
) -> Grouped<In<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
fn eq_any<T>( self, values: T, ) -> Grouped<In<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
Creates a SQL
IN
statement. Read moreSource§fn ne_all<T>(
self,
values: T,
) -> Grouped<NotIn<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
fn ne_all<T>( self, values: T, ) -> Grouped<NotIn<Self, <T as AsInExpression<Self::SqlType>>::InExpression>>
Creates a SQL
NOT IN
statement. Read moreSource§fn is_not_null(self) -> Grouped<IsNotNull<Self>>
fn is_not_null(self) -> Grouped<IsNotNull<Self>>
Creates a SQL
IS NOT NULL
expression. Read moreSource§fn gt<T>(
self,
other: T,
) -> Grouped<Gt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn gt<T>( self, other: T, ) -> Grouped<Gt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
>
expression. Read moreSource§fn ge<T>(
self,
other: T,
) -> Grouped<GtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn ge<T>( self, other: T, ) -> Grouped<GtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
>=
expression. Read moreSource§fn lt<T>(
self,
other: T,
) -> Grouped<Lt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn lt<T>( self, other: T, ) -> Grouped<Lt<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
<
expression. Read moreSource§fn le<T>(
self,
other: T,
) -> Grouped<LtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn le<T>( self, other: T, ) -> Grouped<LtEq<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a SQL
<=
expression. Read moreSource§fn between<T, U>(
self,
lower: T,
upper: U,
) -> Grouped<Between<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
fn between<T, U>( self, lower: T, upper: U, ) -> Grouped<Between<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
Creates a SQL
BETWEEN
expression using the given lower and upper
bounds. Read moreSource§fn not_between<T, U>(
self,
lower: T,
upper: U,
) -> Grouped<NotBetween<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
fn not_between<T, U>( self, lower: T, upper: U, ) -> Grouped<NotBetween<Self, And<<T as AsExpression<Self::SqlType>>::Expression, <U as AsExpression<Self::SqlType>>::Expression>>>
Creates a SQL
NOT BETWEEN
expression using the given lower and upper
bounds. Read moreSource§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> 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> NullableExpressionMethods for Twhere
T: Expression,
impl<T> NullableExpressionMethods for Twhere
T: Expression,
Source§fn nullable(self) -> Nullable<Self>
fn nullable(self) -> Nullable<Self>
Converts this potentially non-null expression into one which is treated
as nullable. This method has no impact on the generated SQL, and is only
used to allow certain comparisons that would otherwise fail to compile. Read more
Source§fn assume_not_null(self) -> AssumeNotNull<Self>
fn assume_not_null(self) -> AssumeNotNull<Self>
Converts this potentially nullable expression into one which will be assumed
to be not-null. This method has no impact on the generated SQL, however it will
enable you to attempt deserialization of the returned value in a non-
Option
. Read moreSource§impl<T> SqliteExpressionMethods for Twhere
T: Expression,
impl<T> SqliteExpressionMethods for Twhere
T: Expression,
Source§fn is<T>(
self,
other: T,
) -> Grouped<Is<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn is<T>( self, other: T, ) -> Grouped<Is<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a Sqlite
IS
expression. Read moreSource§fn is_not<T>(
self,
other: T,
) -> Grouped<IsNot<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn is_not<T>( self, other: T, ) -> Grouped<IsNot<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Creates a Sqlite
IS NOT
expression. Read moreSource§impl<T> TextExpressionMethods for T
impl<T> TextExpressionMethods for T
Source§fn concat<T>(
self,
other: T,
) -> Grouped<Concat<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn concat<T>( self, other: T, ) -> Grouped<Concat<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Concatenates two strings using the
||
operator. Read moreSource§fn like<T>(
self,
other: T,
) -> Grouped<Like<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn like<T>( self, other: T, ) -> Grouped<Like<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Returns a SQL
LIKE
expression Read moreSource§fn not_like<T>(
self,
other: T,
) -> Grouped<NotLike<Self, <T as AsExpression<Self::SqlType>>::Expression>>
fn not_like<T>( self, other: T, ) -> Grouped<NotLike<Self, <T as AsExpression<Self::SqlType>>::Expression>>
Returns a SQL
NOT LIKE
expression Read more