[−][src]Struct diesel::sql_types::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 FromSql<Text, Sqlite> for *const str[src]
impl FromSql<Text, Sqlite> 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<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<'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] |
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] |
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] |
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] |
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] |
impl 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[src]
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<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>, impl SqlOrd for Text[src]
impl SqlOrd for Textimpl HasSqlType<Text> for Sqlite[src]
impl HasSqlType<Text> for Sqlitefn metadata(_: &()) -> SqliteType | [src] |
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] |
impl NotNull for Text[src]
impl NotNull for Textimpl SingleValue for Text[src]
impl SingleValue for Textimpl Copy for Text[src]
impl Copy for Textimpl Default for Text[src]
impl Default for Textimpl Clone for Text[src]
impl Clone for Textfn clone(&self) -> Text | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source. Read more
impl Debug for Text[src]
impl Debug for TextAuto Trait Implementations
Blanket Implementations
impl<T> IntoSql for T[src]
impl<T> IntoSql for Tfn into_sql<T>(self) -> AsExprOf<Self, T> where | [src] |
Convert self to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where | [src] |
Convert &self to an expression for Diesel's query builder. Read more
impl<T> IntoNullable for T where
T: NotNull, [src]
impl<T> IntoNullable for T where
T: NotNull, impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |