pub enum SetQuantifier {
All,
Distinct,
}Expand description
The standard SQL set quantifier ALL / DISTINCT.
ALL is the explicit spelling of the default (no deduplication); it is kept
distinct from “no quantifier” so the surface round-trips, mirroring how
OrderByExpr::asc preserves an explicit ASC. This is the quantifier an
aggregate call carries (FunctionCall::quantifier); a
SELECT list reuses it inside SelectDistinct, which also admits PostgreSQL’s
DISTINCT ON.
Variants§
Trait Implementations§
Source§impl Clone for SetQuantifier
impl Clone for SetQuantifier
Source§fn clone(&self) -> SetQuantifier
fn clone(&self) -> SetQuantifier
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 moreimpl Copy for SetQuantifier
Source§impl Debug for SetQuantifier
impl Debug for SetQuantifier
Source§impl<'de> Deserialize<'de> for SetQuantifier
impl<'de> Deserialize<'de> for SetQuantifier
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 Eq for SetQuantifier
Source§impl Hash for SetQuantifier
impl Hash for SetQuantifier
Source§impl PartialEq for SetQuantifier
impl PartialEq for SetQuantifier
Source§impl Render for SetQuantifier
impl Render for SetQuantifier
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for SetQuantifier
impl Serialize for SetQuantifier
impl StructuralPartialEq for SetQuantifier
Auto Trait Implementations§
impl Freeze for SetQuantifier
impl RefUnwindSafe for SetQuantifier
impl Send for SetQuantifier
impl Sync for SetQuantifier
impl Unpin for SetQuantifier
impl UnsafeUnpin for SetQuantifier
impl UnwindSafe for SetQuantifier
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