pub struct TimestampCastOptions {
pub guess_timestamp_precision: bool,
pub use_timezone_as_is: bool,
}Fields§
§guess_timestamp_precision: boolIf true, try to guess the precision of the timestamp from integers.
Caster will first convert the integer to i64 and then guess the precision.
use_timezone_as_is: boolIf true, caster use the timezone in target type. If false, caster will use UTC.
Trait Implementations§
Source§impl Clone for TimestampCastOptions
impl Clone for TimestampCastOptions
Source§fn clone(&self) -> TimestampCastOptions
fn clone(&self) -> TimestampCastOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimestampCastOptions
impl Debug for TimestampCastOptions
Auto Trait Implementations§
impl Freeze for TimestampCastOptions
impl RefUnwindSafe for TimestampCastOptions
impl Send for TimestampCastOptions
impl Sync for TimestampCastOptions
impl Unpin for TimestampCastOptions
impl UnwindSafe for TimestampCastOptions
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