Struct diesel::expression::sql_literal::SqlLiteral [] [src]

pub struct SqlLiteral<ST> {
    // some fields omitted
}

Available for when you truly cannot represent something using the expression DSL. You will need to provide the type of the expression, in addition to the SQL. The compiler will be unable to verify the correctness of this type.

Methods

impl<ST> SqlLiteral<ST>
[src]

fn new(sql: String) -> Self

Trait Implementations

impl<ST: Clone> Clone for SqlLiteral<ST>
[src]

fn clone(&self) -> SqlLiteral<ST>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<ST: Debug> Debug for SqlLiteral<ST>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<ST: NativeSqlType> Expression for SqlLiteral<ST>
[src]

type SqlType = ST

fn to_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult

impl<QS, ST: NativeSqlType> SelectableExpression<QS> for SqlLiteral<ST>
[src]