Struct diesel::pg::DistinctOnClause
source · [−]pub struct DistinctOnClause<T>(_);
Expand description
Represents DISTINCT ON (...)
Trait Implementations
sourceimpl<T: Clone> Clone for DistinctOnClause<T>
impl<T: Clone> Clone for DistinctOnClause<T>
sourcefn clone(&self) -> DistinctOnClause<T>
fn clone(&self) -> DistinctOnClause<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for DistinctOnClause<T>
impl<T: Debug> Debug for DistinctOnClause<T>
sourceimpl<T> QueryFragment<Pg> for DistinctOnClause<T> where
T: QueryFragment<Pg>,
impl<T> QueryFragment<Pg> for DistinctOnClause<T> where
T: QueryFragment<Pg>,
sourcefn walk_ast(&self, out: AstPass<'_, Pg>) -> QueryResult<()>
fn walk_ast(&self, out: AstPass<'_, Pg>) -> QueryResult<()>
Walk over this QueryFragment
for all passes. Read more
sourcefn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>
fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>
Converts this QueryFragment
to its SQL representation. Read more
sourcefn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>
Serializes all bind parameters in this query. Read more
sourcefn is_safe_to_cache_prepared(&self) -> QueryResult<bool>
fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>
Is this query safe to store in the prepared statement cache? Read more
sourceimpl<T: QueryId> QueryId for DistinctOnClause<T>
impl<T: QueryId> QueryId for DistinctOnClause<T>
type QueryId = DistinctOnClause<<T as QueryId>::QueryId>
type QueryId = DistinctOnClause<<T as QueryId>::QueryId>
A type which uniquely represents Self
in a SQL query. Read more
sourceconst HAS_STATIC_QUERY_ID: bool
const HAS_STATIC_QUERY_ID: bool
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl<T: Copy> Copy for DistinctOnClause<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for DistinctOnClause<T> where
T: RefUnwindSafe,
impl<T> Send for DistinctOnClause<T> where
T: Send,
impl<T> Sync for DistinctOnClause<T> where
T: Sync,
impl<T> Unpin for DistinctOnClause<T> where
T: Unpin,
impl<T> UnwindSafe for DistinctOnClause<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T where
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
sourcefn execute(query: Self, conn: &Conn) -> QueryResult<usize>
fn execute(query: Self, conn: &Conn) -> QueryResult<usize>
Execute this command
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more