pub struct Ident {
pub value: String,
pub quote_style: Option<char>,
pub span: Span,
}Expand description
An identifier, decomposed into its value or character data and the quote style.
The value of the identifier without quotes.
The starting quote if any. Valid quote characters are the single quote, double quote, backtick, and opening square bracket.
The span of the identifier in the original SQL string.
Source§
Source
Create a new identifier with the given value and no quotes and an empty span.
Source
Create a new quoted identifier with the given quote and value. This function panics if the given quote is not a valid quote character.
Source
Create an Ident with the given span and value (unquoted).
Source
Create a quoted Ident with the given quote and span.