pub enum SelectDistinct<X: Extension = NoExt> {
Quantifier {
quantifier: SetQuantifier,
meta: Meta,
},
On {
exprs: ThinVec<Expr<X>>,
meta: Meta,
},
}Expand description
A SELECT-list set quantifier: the standard SetQuantifier (ALL/DISTINCT)
or PostgreSQL’s DISTINCT ON (<expr>, ...).
The enclosing Select::distinct is None when the SELECT writes no
quantifier; the ON variant carries the deduplication keys, which only PG’s
DISTINCT ON admits (so it has no SetQuantifier counterpart).
Variants§
Quantifier
A standard ALL or DISTINCT quantifier.
Fields
§
quantifier: SetQuantifierWhether ALL or DISTINCT; see SetQuantifier.
On
PostgreSQL DISTINCT ON (<expr>, ...): deduplicate on the listed keys only.
Trait Implementations§
Source§impl<X: Clone + Extension> Clone for SelectDistinct<X>
impl<X: Clone + Extension> Clone for SelectDistinct<X>
Source§fn clone(&self) -> SelectDistinct<X>
fn clone(&self) -> SelectDistinct<X>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, X> Deserialize<'de> for SelectDistinct<X>where
X: Deserialize<'de> + Extension,
impl<'de, X> Deserialize<'de> for SelectDistinct<X>where
X: Deserialize<'de> + Extension,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<X: Eq + Extension> Eq for SelectDistinct<X>
Source§impl<X> Serialize for SelectDistinct<X>
impl<X> Serialize for SelectDistinct<X>
Source§impl<X: Extension> Spanned for SelectDistinct<X>
impl<X: Extension> Spanned for SelectDistinct<X>
impl<X: PartialEq + Extension> StructuralPartialEq for SelectDistinct<X>
Auto Trait Implementations§
impl<X> Freeze for SelectDistinct<X>
impl<X> RefUnwindSafe for SelectDistinct<X>where
X: RefUnwindSafe,
impl<X> Send for SelectDistinct<X>where
X: Send,
impl<X> Sync for SelectDistinct<X>where
X: Sync,
impl<X> Unpin for SelectDistinct<X>where
X: Unpin,
impl<X> UnsafeUnpin for SelectDistinct<X>
impl<X> UnwindSafe for SelectDistinct<X>where
X: UnwindSafe,
Blanket Implementations§
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