pub enum StructKeySpelling {
SingleQuoted,
Bare,
DoubleQuoted,
}Expand description
How a StructField key was spelled.
The surface-form tag for the one canonical struct-field shape,
mirroring CastSyntax: DuckDB folds all three to the same field name, so only
this tag and the rendered spelling distinguish them.
Variants§
SingleQuoted
A single-quoted string key, as in {'key': v}.
Bare
A bare identifier key, as in {key: v}.
DoubleQuoted
A double-quoted identifier key, as in {"key": v}.
Trait Implementations§
Source§impl Clone for StructKeySpelling
impl Clone for StructKeySpelling
Source§fn clone(&self) -> StructKeySpelling
fn clone(&self) -> StructKeySpelling
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 StructKeySpelling
Source§impl Debug for StructKeySpelling
impl Debug for StructKeySpelling
Source§impl<'de> Deserialize<'de> for StructKeySpelling
impl<'de> Deserialize<'de> for StructKeySpelling
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 StructKeySpelling
Source§impl Hash for StructKeySpelling
impl Hash for StructKeySpelling
Source§impl PartialEq for StructKeySpelling
impl PartialEq for StructKeySpelling
Source§impl Serialize for StructKeySpelling
impl Serialize for StructKeySpelling
impl StructuralPartialEq for StructKeySpelling
Auto Trait Implementations§
impl Freeze for StructKeySpelling
impl RefUnwindSafe for StructKeySpelling
impl Send for StructKeySpelling
impl Sync for StructKeySpelling
impl Unpin for StructKeySpelling
impl UnsafeUnpin for StructKeySpelling
impl UnwindSafe for StructKeySpelling
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