pub enum Distinct {
All,
Distinct,
On(Vec<Expr>),
}Expand description
ALL, DISTINCT, or DISTINCT ON (...) modifiers for SELECT lists.
Variants§
All
ALL (keep duplicate rows)
Generally this is the default if omitted, but omission should be represented as
None::<Option<Distinct>>
Distinct
DISTINCT (remove duplicate rows)
On(Vec<Expr>)
DISTINCT ON (...) (Postgres extension)
Trait Implementations§
Source§impl Ord for Distinct
impl Ord for Distinct
Source§impl PartialOrd for Distinct
impl PartialOrd for Distinct
Source§impl VisitMut for Distinct
impl VisitMut for Distinct
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for Distinct
impl StructuralPartialEq for Distinct
Auto Trait Implementations§
impl Freeze for Distinct
impl RefUnwindSafe for Distinct
impl Send for Distinct
impl Sync for Distinct
impl Unpin for Distinct
impl UnsafeUnpin for Distinct
impl UnwindSafe for Distinct
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