pub struct Options {
pub decimal_numbers: bool,
pub support_big_numbers: bool,
pub big_number_strings: bool,
pub date_strings: bool,
pub json_strings: bool,
pub truncate_fraction_to_decimals: bool,
}Fields§
§decimal_numbers: bool§support_big_numbers: bool§big_number_strings: bool§date_strings: bool§json_strings: bool§truncate_fraction_to_decimals: boolmysql2’s binary-protocol DATETIME/TIMESTAMP string policy: cut the
fractional seconds of a formatted date_strings value to the column’s
declared decimals (DATETIME(3) gives .123, not .123000). Without
it all six digits are kept. Text-protocol values already arrive with the
declared digits and are returned verbatim either way.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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