pub struct Word {
pub value: String,
pub quote_style: Option<char>,
pub keyword: Keyword,
}
Expand description
A keyword (like SELECT) or an optionally quoted SQL identifier
Fields§
§value: String
The value of the token, without the enclosing quotes, and with the escape sequences (if any) processed (TODO: escapes are not handled)
quote_style: Option<char>
An identifier can be “quoted” (<delimited identifier> in ANSI parlance). The standard and most implementations allow using double quotes for this, but some implementations support other quoting styles as well (e.g. [MS SQL])
keyword: Keyword
If the word was not quoted and it matched one of the known keywords, this will have one of the values from dialect::keywords, otherwise empty
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Word
impl<'de> Deserialize<'de> for Word
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 Ord for Word
impl Ord for Word
source§impl PartialEq<Word> for Word
impl PartialEq<Word> for Word
source§impl PartialOrd<Word> for Word
impl PartialOrd<Word> for Word
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more