pub struct Identifier {
pub name: String,
pub quoted: bool,
pub trailing_comments: Vec<String>,
pub span: Option<Span>,
}Expand description
Represent a SQL identifier (table name, column name, alias, keyword-as-name, etc.).
The quoted flag indicates whether the identifier was originally delimited
(double-quoted, backtick-quoted, or bracket-quoted depending on the
dialect). The generator uses this flag to decide whether to emit quoting
characters.
Fields§
§name: StringThe raw text of the identifier, without any quoting characters.
quoted: boolWhether the identifier was quoted in the source SQL.
trailing_comments: Vec<String>§span: Option<Span>Original source range, including quoting delimiters. Absent for synthetic or programmatically constructed identifiers. Not part of structural equality.
Implementations§
Trait Implementations§
Source§impl Clone for Identifier
impl Clone for Identifier
Source§impl Debug for Identifier
impl Debug for Identifier
Source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
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
Source§impl Display for Identifier
impl Display for Identifier
Source§impl PartialEq for Identifier
impl PartialEq for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnsafeUnpin for Identifier
impl UnwindSafe for Identifier
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