pub struct FormatClause {
pub name: Ident,
pub meta: Meta,
}Expand description
ClickHouse FORMAT <name> — the output-format clause that closes a query
(Query::format), naming the serialization of the result (FORMAT JSON,
FORMAT CSV, FORMAT TabSeparated, FORMAT Null).
The format name is a bare identifier, case-sensitive (JSON ≠ json to
ClickHouse), never a string literal — so it is carried as an Ident preserving
the source spelling, not a Literal. Null is an ordinary format name here, not
the null literal. Carries no Expr, so it is not generic over the extension
parameter (the OrderByAll precedent).
Gated by QueryTailSyntax::format_clause; no shipped
preset spells it but Lenient (the permissive union). There is no ClickHouse oracle,
so the accepted grammar is the recorded acceptance bound.
Fields§
§name: IdentThe output-format name (JSON, TabSeparated, Null); a bare, case-sensitive
identifier.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for FormatClause
impl Clone for FormatClause
Source§fn clone(&self) -> FormatClause
fn clone(&self) -> FormatClause
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FormatClause
impl Debug for FormatClause
Source§impl<'de> Deserialize<'de> for FormatClause
impl<'de> Deserialize<'de> for FormatClause
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>,
impl Eq for FormatClause
Source§impl Hash for FormatClause
impl Hash for FormatClause
Source§impl PartialEq for FormatClause
impl PartialEq for FormatClause
Source§impl Render for FormatClause
impl Render for FormatClause
Source§fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for FormatClause
impl Serialize for FormatClause
impl StructuralPartialEq for FormatClause
Auto Trait Implementations§
impl Freeze for FormatClause
impl RefUnwindSafe for FormatClause
impl Send for FormatClause
impl Sync for FormatClause
impl Unpin for FormatClause
impl UnsafeUnpin for FormatClause
impl UnwindSafe for FormatClause
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynAstExt for T
impl<T> DynAstExt for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&dyn Any for downcasting a node back to its concrete type.Source§fn dyn_clone(&self) -> Box<dyn DynAstExt>
fn dyn_clone(&self) -> Box<dyn DynAstExt>
Clone (whose
Self-returning signature cannot go through a vtable).Source§fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
PartialEq (whose &Self argument cannot go through a vtable). Equal
iff other holds the same concrete type and that type deems the values
equal; differently-typed nodes are never equal.