Struct diesel::sql_types::Text [] [src]

pub struct Text;

The text SQL type.

On all backends strings must be valid UTF-8. On PostgreSQL strings must not include nul bytes.

Schema inference will treat all variants of TEXT as this type (e.g. VARCHAR, MEDIUMTEXT, etc).

ToSql impls

FromSql impls

Trait Implementations

impl SqlOrd for Text
[src]

impl QueryId for Text
[src]

A type which uniquely represents Self in a SQL query. Read more

HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more

[src]

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more

impl NotNull for Text
[src]

impl SingleValue for Text
[src]

impl HasSqlType<Text> for Sqlite
[src]

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

impl HasSqlType<Text> for Mysql
[src]

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

impl HasSqlType<Text> for Pg
[src]

[src]

Fetch the metadata for the given type Read more

[src]

Fetch the metadata for a tuple representing an entire row Read more

impl Debug for Text
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Text
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Text
[src]

impl Default for Text
[src]

[src]

Returns the "default value" for a type. Read more

impl<'expr> AsExpression<Text> for &'expr String
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr String
[src]

The expression being returned

[src]

Perform the conversion

impl AsExpression<Text> for String
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr> AsExpression<Text> for &'expr str
[src]

The expression being returned

[src]

Perform the conversion

impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr str
[src]

The expression being returned

[src]

Perform the conversion

impl<DB: Backend<RawValue = [u8]>> FromSql<Text, DB> for *const str
[src]

The returned pointer is only valid for the lifetime to the argument of from_sql. This impl is intended for uses where you want to write a new impl in terms of String, but don't want to allocate. We have to return a raw pointer instead of a reference with a lifetime due to the structure of FromSql

[src]

See the trait documentation.

impl<DB: Backend> ToSql<Text, DB> for str
[src]

[src]

See the trait documentation.

impl<DB> ToSql<Text, DB> for String where
    DB: Backend,
    str: ToSql<Text, DB>, 
[src]

[src]

See the trait documentation.

Auto Trait Implementations

impl Send for Text

impl Sync for Text