pub struct Text;
Expand description
Trait Implementations§
Source§impl<'a, '__expr, '__expr2> AsExpression<Text> for &'__expr2 &'__expr MigrationVersion<'a>
impl<'a, '__expr, '__expr2> AsExpression<Text> for &'__expr2 &'__expr MigrationVersion<'a>
Source§type Expression = Bound<Text, &'__expr2 &'__expr MigrationVersion<'a>>
type Expression = Bound<Text, &'__expr2 &'__expr MigrationVersion<'a>>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl<'__expr, '__expr2> AsExpression<Text> for &'__expr2 &'__expr String
impl<'__expr, '__expr2> AsExpression<Text> for &'__expr2 &'__expr String
Source§type Expression = Bound<Text, &'__expr2 &'__expr String>
type Expression = Bound<Text, &'__expr2 &'__expr String>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl<'__expr, '__expr2> AsExpression<Text> for &'__expr2 &'__expr str
impl<'__expr, '__expr2> AsExpression<Text> for &'__expr2 &'__expr str
Source§type Expression = Bound<Text, &'__expr2 &'__expr str>
type Expression = Bound<Text, &'__expr2 &'__expr str>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl<'a, '__expr> AsExpression<Text> for &'__expr MigrationVersion<'a>
impl<'a, '__expr> AsExpression<Text> for &'__expr MigrationVersion<'a>
Source§type Expression = Bound<Text, &'__expr MigrationVersion<'a>>
type Expression = Bound<Text, &'__expr MigrationVersion<'a>>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl<'__expr> AsExpression<Text> for &'__expr String
impl<'__expr> AsExpression<Text> for &'__expr String
Source§type Expression = Bound<Text, &'__expr String>
type Expression = Bound<Text, &'__expr String>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl<'__expr> AsExpression<Text> for &'__expr str
impl<'__expr> AsExpression<Text> for &'__expr str
Source§type Expression = Bound<Text, &'__expr str>
type Expression = Bound<Text, &'__expr str>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl<'a> AsExpression<Text> for MigrationVersion<'a>
impl<'a> AsExpression<Text> for MigrationVersion<'a>
Source§type Expression = Bound<Text, MigrationVersion<'a>>
type Expression = Bound<Text, MigrationVersion<'a>>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl AsExpression<Text> for String
impl AsExpression<Text> for String
Source§type Expression = Bound<Text, String>
type Expression = Bound<Text, String>
Source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Source§impl<DB> FromSql<Text, DB> for MigrationVersion<'_>
impl<DB> FromSql<Text, DB> for MigrationVersion<'_>
Source§impl FromSql<Text, Mysql> for *const str
Available on crate feature mysql_backend
only.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
impl FromSql<Text, Mysql> for *const str
mysql_backend
only.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 FromSql<Text, Pg> for *const str
Available on crate feature postgres_backend
only.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
impl FromSql<Text, Pg> for *const str
postgres_backend
only.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 FromSql<Text, Sqlite> for *const str
Available on crate feature sqlite
only.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
impl FromSql<Text, Sqlite> for *const str
sqlite
only.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 Mysql
impl HasSqlType<Text> for Mysql
Source§impl HasSqlType<Text> for Pg
impl HasSqlType<Text> for Pg
Source§fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
fn metadata(_: &mut Self::MetadataLookup) -> PgTypeMetadata
Source§impl HasSqlType<Text> for Sqlite
impl HasSqlType<Text> for Sqlite
Source§impl QueryId for Text
impl QueryId for Text
Source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
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
for<'a> DB: Backend<BindCollector<'a> = RawBytesBindCollector<DB>>,
impl<DB> ToSql<Text, DB> for strwhere
for<'a> DB: Backend<BindCollector<'a> = 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<ST, U, DB> CompatibleType<U, DB> for ST
impl<ST, U, DB> CompatibleType<U, DB> for ST
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.