Struct diesel::sql_types::Text [−][src]
pub struct Text;
Expand description
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
type Expression = Bound<Text, Self>
type Expression = Bound<Text, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Text, Self>
type Expression = Bound<Text, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Text, Self>
type Expression = Bound<Text, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Text, Self>
type Expression = Bound<Text, Self>
The expression being returned
Perform the conversion
type Expression = Bound<Text, Self>
type Expression = Bound<Text, Self>
The expression being returned
Perform the conversion
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
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
Fetch the metadata for the given type Read more
Fetch the metadata for the given type Read more
Can the SQL generated by Self
be uniquely identified by its type? Read more
Auto Trait Implementations
impl RefUnwindSafe for Text
impl UnwindSafe for Text
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more