pub struct LoadDataFields {
pub spelling: LoadFieldsSpelling,
pub terminated_by: Option<Literal>,
pub enclosed_by: Option<LoadDataEnclosed>,
pub escaped_by: Option<Literal>,
pub meta: Meta,
}Expand description
The {FIELDS | COLUMNS} … field-format clause of a LoadDataStatement (mysql
sql_yacc.yy opt_field_term / field_term_list).
The FIELDS and COLUMNS keywords are interchangeable synonyms; the written spelling
rides spelling so it round-trips. At least one of the three sub-clauses
is present — a bare FIELDS with no sub-clause is ER_PARSE_ERROR (engine-measured), which
the parser enforces. Each sub-clause may appear in any order and the parser folds it onto
the matching field (a repeat is last-wins, mirroring the grammar’s merge_field_separators);
the renderer emits the canonical TERMINATED / [OPTIONALLY] ENCLOSED / ESCAPED order.
Fields§
§spelling: LoadFieldsSpellingThe interchangeable keyword spelling (FIELDS vs COLUMNS); see
LoadFieldsSpelling.
terminated_by: Option<Literal>TERMINATED BY '<string>' — the field separator; None when absent.
enclosed_by: Option<LoadDataEnclosed>[OPTIONALLY] ENCLOSED BY '<char>' — the field quoting; None when absent. See
LoadDataEnclosed (the OPTIONALLY modifier rides it, so an OPTIONALLY without an
ENCLOSED BY is unrepresentable).
escaped_by: Option<Literal>ESCAPED BY '<char>' — the escape character; None when absent.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for LoadDataFields
impl Clone for LoadDataFields
Source§fn clone(&self) -> LoadDataFields
fn clone(&self) -> LoadDataFields
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 LoadDataFields
impl Debug for LoadDataFields
Source§impl<'de> Deserialize<'de> for LoadDataFields
impl<'de> Deserialize<'de> for LoadDataFields
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 LoadDataFields
Source§impl Hash for LoadDataFields
impl Hash for LoadDataFields
Source§impl PartialEq for LoadDataFields
impl PartialEq for LoadDataFields
Source§impl Render for LoadDataFields
impl Render for LoadDataFields
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 LoadDataFields
impl Serialize for LoadDataFields
impl StructuralPartialEq for LoadDataFields
Auto Trait Implementations§
impl Freeze for LoadDataFields
impl RefUnwindSafe for LoadDataFields
impl Send for LoadDataFields
impl Sync for LoadDataFields
impl Unpin for LoadDataFields
impl UnsafeUnpin for LoadDataFields
impl UnwindSafe for LoadDataFields
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.