Trait quaint::ast::Aliasable

source ·
pub trait Aliasable<'a> {
    type Target;

    // Required method
    fn alias<T>(self, alias: T) -> Self::Target
       where T: Into<Cow<'a, str>>;
}
Expand description

An object that can be aliased.

Required Associated Types§

Required Methods§

source

fn alias<T>(self, alias: T) -> Self::Targetwhere T: Into<Cow<'a, str>>,

Alias table for usage elsewhere in the query.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> Aliasable<'a> for &'a str

§

type Target = Table<'a>

source§

fn alias<T>(self, alias: T) -> Self::Targetwhere T: Into<Cow<'a, str>>,

source§

impl<'a> Aliasable<'a> for (&'a str, &'a str)

§

type Target = Table<'a>

source§

fn alias<T>(self, alias: T) -> Self::Targetwhere T: Into<Cow<'a, str>>,

source§

impl<'a> Aliasable<'a> for (String, String)

§

type Target = Table<'a>

source§

fn alias<T>(self, alias: T) -> Self::Targetwhere T: Into<Cow<'a, str>>,

source§

impl<'a> Aliasable<'a> for String

§

type Target = Table<'a>

source§

fn alias<T>(self, alias: T) -> Self::Targetwhere T: Into<Cow<'a, str>>,

Implementors§

source§

impl<'a> Aliasable<'a> for Column<'a>

§

type Target = Column<'a>

source§

impl<'a> Aliasable<'a> for Expression<'a>

§

type Target = Expression<'a>

source§

impl<'a> Aliasable<'a> for Function<'a>

§

type Target = Function<'a>

source§

impl<'a> Aliasable<'a> for Table<'a>

§

type Target = Table<'a>