Struct diesel::mysql::data_types::MysqlTime
source · pub struct MysqlTime {
pub year: c_uint,
pub month: c_uint,
pub day: c_uint,
pub hour: c_uint,
pub minute: c_uint,
pub second: c_uint,
pub second_part: c_ulong,
pub neg: bool,
pub time_type: MysqlTimestampType,
pub time_zone_displacement: c_int,
}
Available on crate feature
mysql_backend
only.Expand description
Corresponding rust representation of the MYSQL_TIME struct from libmysqlclient
Fields§
§year: c_uint
§month: c_uint
§day: c_uint
§hour: c_uint
§minute: c_uint
§second: c_uint
§second_part: c_ulong
§neg: bool
§time_type: MysqlTimestampType
§time_zone_displacement: c_int
Implementations§
Trait Implementations§
source§impl<'expr> AsExpression<Date> for &'expr MysqlTime
impl<'expr> AsExpression<Date> for &'expr MysqlTime
§type Expression = Bound<Date, &'expr MysqlTime>
type Expression = Bound<Date, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Date> for MysqlTime
impl AsExpression<Date> for MysqlTime
§type Expression = Bound<Date, MysqlTime>
type Expression = Bound<Date, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Datetime> for &'expr MysqlTime
impl<'expr> AsExpression<Datetime> for &'expr MysqlTime
§type Expression = Bound<Datetime, &'expr MysqlTime>
type Expression = Bound<Datetime, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Datetime> for MysqlTime
impl AsExpression<Datetime> for MysqlTime
§type Expression = Bound<Datetime, MysqlTime>
type Expression = Bound<Datetime, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Nullable<Date>> for &'expr MysqlTime
impl<'expr> AsExpression<Nullable<Date>> for &'expr MysqlTime
§type Expression = Bound<Nullable<Date>, &'expr MysqlTime>
type Expression = Bound<Nullable<Date>, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Nullable<Date>> for MysqlTime
impl AsExpression<Nullable<Date>> for MysqlTime
§type Expression = Bound<Nullable<Date>, MysqlTime>
type Expression = Bound<Nullable<Date>, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Nullable<Datetime>> for &'expr MysqlTime
impl<'expr> AsExpression<Nullable<Datetime>> for &'expr MysqlTime
§type Expression = Bound<Nullable<Datetime>, &'expr MysqlTime>
type Expression = Bound<Nullable<Datetime>, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Nullable<Datetime>> for MysqlTime
impl AsExpression<Nullable<Datetime>> for MysqlTime
§type Expression = Bound<Nullable<Datetime>, MysqlTime>
type Expression = Bound<Nullable<Datetime>, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Nullable<Time>> for &'expr MysqlTime
impl<'expr> AsExpression<Nullable<Time>> for &'expr MysqlTime
§type Expression = Bound<Nullable<Time>, &'expr MysqlTime>
type Expression = Bound<Nullable<Time>, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Nullable<Time>> for MysqlTime
impl AsExpression<Nullable<Time>> for MysqlTime
§type Expression = Bound<Nullable<Time>, MysqlTime>
type Expression = Bound<Nullable<Time>, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr MysqlTime
impl<'expr> AsExpression<Nullable<Timestamp>> for &'expr MysqlTime
§type Expression = Bound<Nullable<Timestamp>, &'expr MysqlTime>
type Expression = Bound<Nullable<Timestamp>, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Nullable<Timestamp>> for MysqlTime
impl AsExpression<Nullable<Timestamp>> for MysqlTime
§type Expression = Bound<Nullable<Timestamp>, MysqlTime>
type Expression = Bound<Nullable<Timestamp>, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Time> for &'expr MysqlTime
impl<'expr> AsExpression<Time> for &'expr MysqlTime
§type Expression = Bound<Time, &'expr MysqlTime>
type Expression = Bound<Time, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Time> for MysqlTime
impl AsExpression<Time> for MysqlTime
§type Expression = Bound<Time, MysqlTime>
type Expression = Bound<Time, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Timestamp> for &'expr MysqlTime
impl<'expr> AsExpression<Timestamp> for &'expr MysqlTime
§type Expression = Bound<Timestamp, &'expr MysqlTime>
type Expression = Bound<Timestamp, &'expr MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Timestamp> for MysqlTime
impl AsExpression<Timestamp> for MysqlTime
§type Expression = Bound<Timestamp, MysqlTime>
type Expression = Bound<Timestamp, MysqlTime>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<__ST, __DB> Queryable<__ST, __DB> for MysqlTimewhere
__DB: Backend,
__ST: SingleValue,
Self: FromSql<__ST, __DB>,
impl<__ST, __DB> Queryable<__ST, __DB> for MysqlTimewhere __DB: Backend, __ST: SingleValue, Self: FromSql<__ST, __DB>,
source§impl<__DB> ToSql<Nullable<Date>, __DB> for MysqlTimewhere
__DB: Backend,
Self: ToSql<Date, __DB>,
impl<__DB> ToSql<Nullable<Date>, __DB> for MysqlTimewhere __DB: Backend, Self: ToSql<Date, __DB>,
source§impl<__DB> ToSql<Nullable<Datetime>, __DB> for MysqlTimewhere
__DB: Backend,
Self: ToSql<Datetime, __DB>,
impl<__DB> ToSql<Nullable<Datetime>, __DB> for MysqlTimewhere __DB: Backend, Self: ToSql<Datetime, __DB>,
source§impl<__DB> ToSql<Nullable<Time>, __DB> for MysqlTimewhere
__DB: Backend,
Self: ToSql<Time, __DB>,
impl<__DB> ToSql<Nullable<Time>, __DB> for MysqlTimewhere __DB: Backend, Self: ToSql<Time, __DB>,
source§impl<__DB> ToSql<Nullable<Timestamp>, __DB> for MysqlTimewhere
__DB: Backend,
Self: ToSql<Timestamp, __DB>,
impl<__DB> ToSql<Nullable<Timestamp>, __DB> for MysqlTimewhere __DB: Backend, Self: ToSql<Timestamp, __DB>,
impl Copy for MysqlTime
Auto Trait Implementations§
impl RefUnwindSafe for MysqlTime
impl Send for MysqlTime
impl Sync for MysqlTime
impl Unpin for MysqlTime
impl UnwindSafe for MysqlTime
Blanket Implementations§
source§impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere T: Queryable<ST, DB>, ST: SqlTypeOrSelectable, DB: Backend, <T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
source§impl<T, ST, DB> FromStaticSqlRow<ST, DB> for Twhere
DB: Backend,
T: FromSql<ST, DB>,
ST: SingleValue,
impl<T, ST, DB> FromStaticSqlRow<ST, DB> for Twhere DB: Backend, T: FromSql<ST, DB>, ST: SingleValue,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> AsExprOf<Self, T>where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T>where Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T>where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read moresource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere
ST: SqlTypeOrSelectable + TupleSize,
T: Queryable<ST, DB>,
DB: Backend,
impl<T, ST, DB> StaticallySizedRow<ST, DB> for Twhere ST: SqlTypeOrSelectable + TupleSize, T: Queryable<ST, DB>, DB: Backend,
source§const FIELD_COUNT: usize =
const FIELD_COUNT: usize =
The number of fields that this type will consume.