Struct diesel::pg::DistinctOnClause [−][src]
pub struct DistinctOnClause<T>(_);
Represents DISTINCT ON (...)
Trait Implementations
impl<T: QueryId> QueryId for DistinctOnClause<T>[src]
impl<T: QueryId> QueryId for DistinctOnClause<T>type QueryId = DistinctOnClause<<T as QueryId>::QueryId>
A type which uniquely represents Self in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = <T as QueryId>::HAS_STATIC_QUERY_ID && true
Can the SQL generated by Self be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>[src]
fn query_id() -> Option<TypeId>Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
impl<T: Debug> Debug for DistinctOnClause<T>[src]
impl<T: Debug> Debug for DistinctOnClause<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Clone> Clone for DistinctOnClause<T>[src]
impl<T: Clone> Clone for DistinctOnClause<T>fn clone(&self) -> DistinctOnClause<T>[src]
fn clone(&self) -> DistinctOnClause<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: Copy> Copy for DistinctOnClause<T>[src]
impl<T: Copy> Copy for DistinctOnClause<T>impl<T> QueryFragment<Pg> for DistinctOnClause<T> where
T: QueryFragment<Pg>, [src]
impl<T> QueryFragment<Pg> for DistinctOnClause<T> where
T: QueryFragment<Pg>, fn walk_ast(&self, out: AstPass<Pg>) -> QueryResult<()>[src]
fn walk_ast(&self, out: AstPass<Pg>) -> QueryResult<()>Walk over this QueryFragment for all passes. Read more
fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>[src]
fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>Converts this QueryFragment to its SQL representation. Read more
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>[src]
fn collect_binds(
&self,
out: &mut DB::BindCollector,
metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>Serializes all bind parameters in this query. Read more
fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>[src]
fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>Is this query safe to store in the prepared statement cache? Read more
Auto Trait Implementations
impl<T> Send for DistinctOnClause<T> where
T: Send,
impl<T> Send for DistinctOnClause<T> where
T: Send, impl<T> Sync for DistinctOnClause<T> where
T: Sync,
impl<T> Sync for DistinctOnClause<T> where
T: Sync,