Struct sqlparser::ast::Ident[][src]

pub struct Ident {
    pub value: String,
    pub quote_style: Option<char>,
}

An identifier, decomposed into its value or character data and the quote style.

Fields

value: String

The value of the identifier without quotes.

quote_style: Option<char>

The starting quote if any. Valid quote characters are the single quote, double quote, backtick, and opening square bracket.

Implementations

impl Ident[src]

pub fn new<S>(value: S) -> Self where
    S: Into<String>, 
[src]

Create a new identifier with the given value and no quotes.

pub fn with_quote<S>(quote: char, value: S) -> Self where
    S: Into<String>, 
[src]

Create a new quoted identifier with the given quote and value. This function panics if the given quote is not a valid quote character.

Trait Implementations

impl Clone for Ident[src]

impl Debug for Ident[src]

impl Display for Ident[src]

impl Eq for Ident[src]

impl From<&'_ str> for Ident[src]

impl Hash for Ident[src]

impl PartialEq<Ident> for Ident[src]

impl StructuralEq for Ident[src]

impl StructuralPartialEq for Ident[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.