[][src]Struct quaint::ast::Column

pub struct Column<'a> {
    pub name: Cow<'a, str>,
    // some fields omitted
}

A column definition.

Fields

name: Cow<'a, str>

Methods

impl<'a> Column<'a>[src]

pub fn new<S>(name: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

Create a column definition.

pub fn table<T>(self, table: T) -> Self where
    T: Into<Table<'a>>, 
[src]

Include the table name in the column expression.

pub fn opt_table<T>(self, table: Option<T>) -> Self where
    T: Into<Table<'a>>, 
[src]

Include the table name in the column expression, if table is defined.

pub fn alias<S>(self, alias: S) -> Self where
    S: Into<Cow<'a, str>>, 
[src]

Give the column an alias in the query.

Trait Implementations

impl<'a> Clone for Column<'a>[src]

impl<'a> Debug for Column<'a>[src]

impl<'a> Default for Column<'a>[src]

impl<'a> From<&'a str> for Column<'a>[src]

impl<'a, T, C> From<(T, C)> for Column<'a> where
    T: Into<Table<'a>>,
    C: Into<Column<'a>>, 
[src]

impl<'a> From<Column<'a>> for DatabaseValue<'a>[src]

impl<'a> From<String> for Column<'a>[src]

impl<'a> Groupable<'a> for Column<'a>[src]

impl<'a> IntoGroupByDefinition<'a> for Column<'a>[src]

impl<'a> IntoOrderDefinition<'a> for Column<'a>[src]

impl<'a> Orderable<'a> for Column<'a>[src]

impl<'a> PartialEq<Column<'a>> for Column<'a>[src]

impl<'a> StructuralPartialEq for Column<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Column<'a>

impl<'a> Send for Column<'a>

impl<'a> Sync for Column<'a>

impl<'a> Unpin for Column<'a>

impl<'a> UnwindSafe for Column<'a>

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,