Struct diesel::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]
type QueryId = Self
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by Self
be uniquely identified by its type? Read more
fn query_id() -> Option<TypeId>
[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 Debug for Text
[src]
impl Clone for Text
[src]
fn clone(&self) -> Text
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more