[][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>, 

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

Converts this QueryFragment to its SQL representation. Read more

fn collect_binds(
    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]

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> Unpin for DistinctOnClause<T> where
    T: Unpin

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

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

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

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

Blanket Implementations

impl<T> IntoSql for T[src]

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

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>, 

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

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

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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