#[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
Source§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
Source§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
Source§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
Source§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
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
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
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
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
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
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
Source§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
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
Source§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
Source§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
Source§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
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.