pub struct Text;
Expand description
Trait Implementations§
source§impl<'expr2, 'expr, 'a> AsExpression<Text> for &'expr2 &'expr MigrationVersion<'a>
impl<'expr2, 'expr, 'a> AsExpression<Text> for &'expr2 &'expr MigrationVersion<'a>
§type Expression = Bound<Text, &'expr2 &'expr MigrationVersion<'a>>
type Expression = Bound<Text, &'expr2 &'expr MigrationVersion<'a>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr String
impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr String
§type Expression = Bound<Text, &'expr2 &'expr String>
type Expression = Bound<Text, &'expr2 &'expr String>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr str
impl<'expr2, 'expr> AsExpression<Text> for &'expr2 &'expr str
§type Expression = Bound<Text, &'expr2 &'expr str>
type Expression = Bound<Text, &'expr2 &'expr str>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr, 'a> AsExpression<Text> for &'expr MigrationVersion<'a>
impl<'expr, 'a> AsExpression<Text> for &'expr MigrationVersion<'a>
§type Expression = Bound<Text, &'expr MigrationVersion<'a>>
type Expression = Bound<Text, &'expr MigrationVersion<'a>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Text> for &'expr String
impl<'expr> AsExpression<Text> for &'expr String
§type Expression = Bound<Text, &'expr String>
type Expression = Bound<Text, &'expr String>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Text> for &'expr str
impl<'expr> AsExpression<Text> for &'expr str
§type Expression = Bound<Text, &'expr str>
type Expression = Bound<Text, &'expr str>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a> AsExpression<Text> for MigrationVersion<'a>
impl<'a> AsExpression<Text> for MigrationVersion<'a>
§type Expression = Bound<Text, MigrationVersion<'a>>
type Expression = Bound<Text, MigrationVersion<'a>>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Text> for String
impl AsExpression<Text> for String
§type Expression = Bound<Text, String>
type Expression = Bound<Text, String>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a>
impl<'a, DB> FromSql<Text, DB> for MigrationVersion<'a>
source§impl FromSql<Text, Pg> for *const str
impl FromSql<Text, Pg> for *const str
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
source§impl HasSqlType<Text> for Pg
impl HasSqlType<Text> for Pg
source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
source§impl QueryId for Text
impl QueryId for Text
source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read moresource§impl<'a, DB> ToSql<Text, DB> for MigrationVersion<'a>
impl<'a, DB> ToSql<Text, DB> for MigrationVersion<'a>
source§impl<DB> ToSql<Text, DB> for strwhere
DB: Backend<BindCollector = RawBytesBindCollector<DB>>,
impl<DB> ToSql<Text, DB> for strwhere
DB: Backend<BindCollector = RawBytesBindCollector<DB>>,
impl Copy for Text
impl SingleValue for Text
impl SqlOrd for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<ST, U, DB> CompatibleType<U, DB> for ST
impl<ST, U, DB> CompatibleType<U, DB> for ST
source§impl<T> IntoNotNullable for T
impl<T> IntoNotNullable for T
§type NotNullable = T
type NotNullable = T
The not nullable representation of this type. Read more