pub struct RANDOM;
Expand description
Trait Implementations§
source§impl<DB> QueryFragment<DB> for RANDOMwhere
DB: Backend,
impl<DB> QueryFragment<DB> for RANDOMwhere DB: Backend,
source§fn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
fn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
Walk over this
QueryFragment
for all passes. Read more§fn to_sql(&self, out: &mut <DB as Backend>::QueryBuilder) -> Result<(), Error>
fn to_sql(&self, out: &mut <DB as Backend>::QueryBuilder) -> Result<(), Error>
Converts this
QueryFragment
to its SQL representation. Read more§fn collect_binds(
&self,
out: &mut <DB as Backend>::BindCollector,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error>
fn collect_binds( &self, out: &mut <DB as Backend>::BindCollector, metadata_lookup: &<DB as TypeMetadata>::MetadataLookup ) -> Result<(), Error>
Serializes all bind parameters in this query. Read more
§fn is_safe_to_cache_prepared(&self) -> Result<bool, Error>
fn is_safe_to_cache_prepared(&self) -> Result<bool, Error>
Is this query safe to store in the prepared statement cache? Read more
source§impl QueryId for RANDOM
impl QueryId for RANDOM
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 moreimpl<QS> AppearsOnTable<QS> for RANDOM
impl Copy for RANDOM
impl NonAggregate for RANDOM
impl<QS> SelectableExpression<QS> for RANDOM
Auto Trait Implementations§
impl RefUnwindSafe for RANDOM
impl Send for RANDOM
impl Sync for RANDOM
impl Unpin for RANDOM
impl UnwindSafe for RANDOM
Blanket Implementations§
§impl<T> AsExpression<<T as Expression>::SqlType> for Twhere
T: Expression,
impl<T> AsExpression<<T as Expression>::SqlType> for Twhere T: Expression,
§type Expression = T
type Expression = T
The expression being returned
§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
§impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere Conn: Connection<Backend = DB>, DB: Backend, T: QueryFragment<DB> + QueryId,
§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>
§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<T> NullableExpressionMethods for Twhere
T: Expression,
impl<T> NullableExpressionMethods for Twhere T: Expression,
§impl<T> PgExpressionMethods for Twhere
T: Expression,
impl<T> PgExpressionMethods for Twhere T: Expression,
§fn is_not_distinct_from<T>(
self,
other: T
) -> IsNotDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression>where
T: AsExpression<Self::SqlType>,
fn is_not_distinct_from<T>( self, other: T ) -> IsNotDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression>where T: AsExpression<Self::SqlType>,
Creates a PostgreSQL
IS NOT DISTINCT FROM
expression. Read more§fn is_distinct_from<T>(
self,
other: T
) -> IsDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression>where
T: AsExpression<Self::SqlType>,
fn is_distinct_from<T>( self, other: T ) -> IsDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression>where T: AsExpression<Self::SqlType>,
Creates a PostgreSQL
IS DISTINCT FROM
expression. Read more