#[repr(C)]#[non_exhaustive]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 (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Date> for MysqlTime
impl AsExpression<Date> for MysqlTime
type Expression = Bound<Date, MysqlTime>
type Expression = Bound<Date, MysqlTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Datetime> for MysqlTime
impl AsExpression<Datetime> for MysqlTime
type Expression = Bound<Datetime, MysqlTime>
type Expression = Bound<Datetime, MysqlTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl 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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl 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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl 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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl 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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Time> for MysqlTime
impl AsExpression<Time> for MysqlTime
type Expression = Bound<Time, MysqlTime>
type Expression = Bound<Time, MysqlTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl<'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
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl AsExpression<Timestamp> for MysqlTime
impl AsExpression<Timestamp> for MysqlTime
type Expression = Bound<Timestamp, MysqlTime>
type Expression = Bound<Timestamp, MysqlTime>
The expression being returned
sourcefn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
sourceimpl FromSql<Date, Mysql> for MysqlTime
impl FromSql<Date, Mysql> for MysqlTime
sourcefn from_sql(value: MysqlValue<'_>) -> Result<Self>
fn from_sql(value: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl FromSql<Datetime, Mysql> for MysqlTime
impl FromSql<Datetime, Mysql> for MysqlTime
sourcefn from_sql(value: MysqlValue<'_>) -> Result<Self>
fn from_sql(value: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl FromSql<Time, Mysql> for MysqlTime
impl FromSql<Time, Mysql> for MysqlTime
sourcefn from_sql(value: MysqlValue<'_>) -> Result<Self>
fn from_sql(value: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl FromSql<Timestamp, Mysql> for MysqlTime
impl FromSql<Timestamp, Mysql> for MysqlTime
sourcefn from_sql(value: MysqlValue<'_>) -> Result<Self>
fn from_sql(value: MysqlValue<'_>) -> Result<Self>
See the trait documentation.
sourceimpl<__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>,
sourceimpl<__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>,
sourceimpl<__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>,
sourceimpl<__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>,
sourceimpl<__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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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>,
sourceimpl<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,
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn 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 moresourcefn 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 moresourceimpl<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,
sourceconst FIELD_COUNT: usize =
const FIELD_COUNT: usize =
The number of fields that this type will consume.