[−][src]Struct quaint::ast::Column
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]
S: Into<Cow<'a, str>>,
Create a column definition.
pub fn table<T>(self, table: T) -> Self where
T: Into<Table<'a>>,
[src]
T: Into<Table<'a>>,
Include the table name in the column expression.
pub fn opt_table<T>(self, table: Option<T>) -> Self where
T: Into<Table<'a>>,
[src]
T: Into<Table<'a>>,
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]
S: Into<Cow<'a, str>>,
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]
T: Into<Table<'a>>,
C: Into<Column<'a>>,
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]
fn group(self) -> GroupByDefinition<'a>
[src]
impl<'a> IntoGroupByDefinition<'a> for Column<'a>
[src]
fn into_group_by_definition(self) -> GroupByDefinition<'a>
[src]
impl<'a> IntoOrderDefinition<'a> for Column<'a>
[src]
fn into_order_definition(self) -> OrderDefinition<'a>
[src]
impl<'a> Orderable<'a> for Column<'a>
[src]
fn order(self, order: Option<Order>) -> OrderDefinition<'a>
[src]
fn ascend(self) -> OrderDefinition<'a>
[src]
fn descend(self) -> OrderDefinition<'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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,