Struct diesel::sql_types::Time [−][src]
pub struct Time;
The time SQL type.
ToSql impls
chrono::NaiveTimewithfeature = "chrono"
FromSql impls
chrono::NaiveTimewithfeature = "chrono"
Trait Implementations
impl Add for Time[src]
impl Add for Timetype 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 Timetype 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 Timeimpl QueryId for Time[src]
impl QueryId for Timetype 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 Timeimpl SingleValue for Time[src]
impl SingleValue for Timeimpl HasSqlType<Time> for Sqlite[src]
impl HasSqlType<Time> for Sqlitefn metadata(_: &()) -> SqliteType[src]
fn metadata(_: &()) -> SqliteTypeFetch the metadata for the given type Read more
impl HasSqlType<Time> for Mysql[src]
impl HasSqlType<Time> for Mysqlimpl HasSqlType<Time> for Pg[src]
impl HasSqlType<Time> for Pgfn metadata(_: &PgMetadataLookup) -> PgTypeMetadata[src]
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadataFetch the metadata for the given type Read more
impl Debug for Time[src]
impl Debug for Timefn 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 Time[src]
impl Clone for Timefn clone(&self) -> Time[src]
fn clone(&self) -> TimeReturns 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 Timeimpl Default for Time[src]
impl Default for Timeimpl ToSql<Time, Mysql> for MYSQL_TIME[src]
impl ToSql<Time, Mysql> for MYSQL_TIMEimpl FromSql<Time, Mysql> for MYSQL_TIME[src]
impl FromSql<Time, Mysql> for MYSQL_TIMEimpl ToSql<Time, Mysql> for NaiveTime[src]
impl ToSql<Time, Mysql> for NaiveTimeimpl FromSql<Time, Mysql> for NaiveTime[src]
impl FromSql<Time, Mysql> for NaiveTimeimpl ToSql<Time, Pg> for NaiveTime[src]
impl ToSql<Time, Pg> for NaiveTimeimpl FromSql<Time, Pg> for NaiveTime[src]
impl FromSql<Time, Pg> for NaiveTimeimpl<'expr> AsExpression<Time> for &'expr PgTime[src]
impl<'expr> AsExpression<Time> for &'expr PgTimetype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr PgTime[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr PgTimetype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Time> for PgTime[src]
impl AsExpression<Time> for PgTimetype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl ToSql<Time, Pg> for PgTime[src]
impl ToSql<Time, Pg> for PgTimeimpl FromSql<Time, Pg> for PgTime[src]
impl FromSql<Time, Pg> for PgTimeimpl FromSql<Time, Sqlite> for NaiveTime[src]
impl FromSql<Time, Sqlite> for NaiveTimefn 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 NaiveTimeimpl FromSql<Time, Sqlite> for *const str[src]
impl FromSql<Time, 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 ToSql<Time, Sqlite> for str[src]
impl ToSql<Time, Sqlite> for strimpl ToSql<Time, Sqlite> for String[src]
impl ToSql<Time, Sqlite> for Stringimpl<'expr> AsExpression<Time> for &'expr NaiveTime[src]
impl<'expr> AsExpression<Time> for &'expr NaiveTimetype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr NaiveTime[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr NaiveTimetype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Time> for NaiveTime[src]
impl AsExpression<Time> for NaiveTimetype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr> AsExpression<Time> for &'expr String[src]
impl<'expr> AsExpression<Time> for &'expr Stringtype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr String[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr Stringtype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl AsExpression<Time> for String[src]
impl AsExpression<Time> for Stringtype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr> AsExpression<Time> for &'expr str[src]
impl<'expr> AsExpression<Time> for &'expr strtype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr str[src]
impl<'expr2, 'expr> AsExpression<Time> for &'expr2 &'expr strtype Expression = Bound<Time, Self>
The expression being returned
fn as_expression(self) -> Self::Expression[src]
fn as_expression(self) -> Self::ExpressionPerform the conversion