Struct diesel::mysql::data_types::MysqlTime
source · #[non_exhaustive]#[repr(C)]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§
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
impl Copy for MysqlTime
Auto Trait Implementations§
impl Freeze for MysqlTime
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> 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
Mutably borrows from an owned value. Read more
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 T
impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
source§const FIELD_COUNT: usize = const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE;
const FIELD_COUNT: usize = const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE;
The number of fields that this type will consume.