Struct diesel::sql_types::Time [−][src]
pub struct Time;
The time SQL type.
ToSql
impls
chrono::NaiveTime
withfeature = "chrono"
FromSql
impls
chrono::NaiveTime
withfeature = "chrono"
Trait Implementations
impl Add for Time
[src]
impl Add for Time
type Rhs = Interval
The SQL type which can be added to this one
type Output = Time
The SQL type of the result of adding Rhs
to Self
impl Sub for Time
[src]
impl Sub for Time
type Rhs = Interval
The SQL type which can be subtracted from this one
type Output = Time
The SQL type of the result of subtracting Rhs
from Self
impl SqlOrd for Time
[src]
impl SqlOrd for Time
impl QueryId for Time
[src]
impl QueryId for Time
type QueryId = Time
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 Time
[src]
impl NotNull for Time
impl SingleValue for Time
[src]
impl SingleValue for Time
impl HasSqlType<Time> for Sqlite
[src]
impl HasSqlType<Time> for Sqlite
fn metadata(_: &()) -> SqliteType
[src]
fn metadata(_: &()) -> SqliteType
Fetch the metadata for the given type Read more
impl HasSqlType<Time> for Mysql
[src]
impl HasSqlType<Time> for Mysql
impl HasSqlType<Time> for Pg
[src]
impl HasSqlType<Time> for Pg
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
impl Debug for Time
[src]
impl Debug for Time
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Time
[src]
impl Clone for Time
fn clone(&self) -> Time
[src]
fn clone(&self) -> Time
Returns 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 Time
[src]
impl Copy for Time
impl Default for Time
[src]
impl Default for Time
impl ToSql<Time, Mysql> for MYSQL_TIME
[src]
impl ToSql<Time, Mysql> for MYSQL_TIME
impl FromSql<Time, Mysql> for MYSQL_TIME
[src]
impl FromSql<Time, Mysql> for MYSQL_TIME
impl ToSql<Time, Mysql> for NaiveTime
[src]
impl ToSql<Time, Mysql> for NaiveTime
impl FromSql<Time, Mysql> for NaiveTime
[src]
impl FromSql<Time, Mysql> for NaiveTime
impl ToSql<Time, Pg> for NaiveTime
[src]
impl ToSql<Time, Pg> for NaiveTime
impl FromSql<Time, Pg> for NaiveTime
[src]
impl FromSql<Time, Pg> for NaiveTime
impl<'expr> AsExpression<Time> for &'expr PgTime
[src]
impl<'expr> AsExpression<Time> for &'expr PgTime
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr PgTime
[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr PgTime
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<Time> for PgTime
[src]
impl AsExpression<Time> for PgTime
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl ToSql<Time, Pg> for PgTime
[src]
impl ToSql<Time, Pg> for PgTime
impl FromSql<Time, Pg> for PgTime
[src]
impl FromSql<Time, Pg> for PgTime
impl FromSql<Time, Sqlite> for NaiveTime
[src]
impl FromSql<Time, Sqlite> for NaiveTime
fn from_sql(value: Option<&<Sqlite as Backend>::RawValue>) -> Result<Self>
[src]
fn from_sql(value: Option<&<Sqlite as Backend>::RawValue>) -> Result<Self>
See the trait documentation.
impl ToSql<Time, Sqlite> for NaiveTime
[src]
impl ToSql<Time, Sqlite> for NaiveTime
impl FromSql<Time, Sqlite> for *const str
[src]
impl FromSql<Time, Sqlite> 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
impl ToSql<Time, Sqlite> for str
[src]
impl ToSql<Time, Sqlite> for str
impl ToSql<Time, Sqlite> for String
[src]
impl ToSql<Time, Sqlite> for String
impl<'expr> AsExpression<Time> for &'expr NaiveTime
[src]
impl<'expr> AsExpression<Time> for &'expr NaiveTime
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr NaiveTime
[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr NaiveTime
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<Time> for NaiveTime
[src]
impl AsExpression<Time> for NaiveTime
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr> AsExpression<Time> for &'expr String
[src]
impl<'expr> AsExpression<Time> for &'expr String
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr String
[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr String
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl AsExpression<Time> for String
[src]
impl AsExpression<Time> for String
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr> AsExpression<Time> for &'expr str
[src]
impl<'expr> AsExpression<Time> for &'expr str
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr str
[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr str
type Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
fn as_expression(self) -> Self::Expression
Perform the conversion