#[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§

Construct a new instance of MysqlTime

Trait Implementations§

The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
The expression being returned
Perform the conversion
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
See the trait documentation.
A specialized variant of from_sql for handling null values. Read more
See the trait documentation.
A specialized variant of from_sql for handling null values. Read more
See the trait documentation.
A specialized variant of from_sql for handling null values. Read more
See the trait documentation.
A specialized variant of from_sql for handling null values. Read more
The Rust type you’d like to map from. Read more
Construct an instance of this type
See the trait documentation.
See the trait documentation.
See the trait documentation.
See the trait documentation.
See the trait documentation.
See the trait documentation.
See the trait documentation.
See the trait documentation.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

See the trait documentation.
See the trait documentation

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. Read more
The number of fields that this type will consume.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.