[][src]Struct diesel::pg::DistinctOnClause

pub struct DistinctOnClause<T>(_);

Represents DISTINCT ON (...)

Trait Implementations

impl<T: QueryId> QueryId for DistinctOnClause<T>[src]

type QueryId = DistinctOnClause<<T as QueryId>::QueryId>

A type which uniquely represents Self in a SQL query. Read more

fn query_id() -> Option<TypeId>[src]

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl<T> QueryFragment<Pg> for DistinctOnClause<T> where
    T: QueryFragment<Pg>, 
[src]

fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()>[src]

Converts this QueryFragment to its SQL representation. Read more

fn collect_binds(
    &self,
    out: &mut DB::BindCollector,
    metadata_lookup: &DB::MetadataLookup
) -> QueryResult<()>
[src]

Serializes all bind parameters in this query. Read more

fn is_safe_to_cache_prepared(&self) -> QueryResult<bool>[src]

Is this query safe to store in the prepared statement cache? Read more

impl<T: Clone> Clone for DistinctOnClause<T>[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: Debug> Debug for DistinctOnClause<T>[src]

Auto Trait Implementations

impl<T> Send for DistinctOnClause<T> where
    T: Send

impl<T> Sync for DistinctOnClause<T> where
    T: Sync

Blanket Implementations

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> AsExprOf<Self, T> where
    Self: AsExpression<T> + Sized
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<Conn, DB, T> ExecuteDsl for T where
    Conn: Connection<Backend = DB>,
    DB: Backend,
    T: QueryFragment<DB> + QueryId
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.