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 SqlOrd for Textimpl QueryId for Text[src]
impl QueryId for Texttype QueryId = Text
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]
fn query_id() -> Option<TypeId>Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
impl NotNull for Text[src]
impl NotNull for Textimpl SingleValue for Text[src]
impl SingleValue for Textimpl HasSqlType<Text> for Sqlite[src]
impl HasSqlType<Text> for Sqlitefn metadata(_: &()) -> SqliteType[src]
fn metadata(_: &()) -> SqliteTypeFetch the metadata for the given type Read more
impl HasSqlType<Text> for Mysql[src]
impl HasSqlType<Text> for Mysqlimpl HasSqlType<Text> for Pg[src]
impl HasSqlType<Text> for Pgfn metadata(_: &PgMetadataLookup) -> PgTypeMetadata[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadataFetch the metadata for the given type Read more
impl Debug for Text[src]
impl Debug for Textfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Text[src]
impl Clone for Textfn clone(&self) -> Text[src]
fn clone(&self) -> TextReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for Text[src]
impl Copy for Textimpl Default for Text[src]
impl Default for Textimpl<'expr> AsExpression<Text> for &'expr String[src]
impl<'expr> AsExpression<Text> for &'expr Stringtype Expression = Bound<Text, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr String[src]
impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr Stringtype Expression = Bound<Text, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Text> for String[src]
impl AsExpression<Text> for Stringtype Expression = Bound<Text, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr> AsExpression<Text> for &'expr str[src]
impl<'expr> AsExpression<Text> for &'expr strtype Expression = Bound<Text, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr str[src]
impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr strtype Expression = Bound<Text, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<DB: Backend<RawValue = [u8]>> FromSql<Text, DB> for *const str[src]
impl<DB: Backend<RawValue = [u8]>> FromSql<Text, DB> for *const strThe 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
impl<DB: Backend> ToSql<Text, DB> for str[src]
impl<DB: Backend> ToSql<Text, DB> for strimpl<DB> ToSql<Text, DB> for String where
DB: Backend,
str: ToSql<Text, DB>, [src]
impl<DB> ToSql<Text, DB> for String where
DB: Backend,
str: ToSql<Text, DB>,