pub enum TimezonePolicy {
Reject,
DateTimeOffset,
NormalizeUtcDateTime2,
}Expand description
Timezone-aware timestamp conversion policy.
Variants§
Reject
Reject timezone-aware timestamps.
DateTimeOffset
Target SQL Server datetimeoffset.
NormalizeUtcDateTime2
Normalize to UTC and target timezone-free datetime2.
Trait Implementations§
Source§impl Clone for TimezonePolicy
impl Clone for TimezonePolicy
Source§fn clone(&self) -> TimezonePolicy
fn clone(&self) -> TimezonePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimezonePolicy
impl Debug for TimezonePolicy
Source§impl Default for TimezonePolicy
impl Default for TimezonePolicy
Source§fn default() -> TimezonePolicy
fn default() -> TimezonePolicy
Returns the “default value” for a type. Read more
Source§impl Hash for TimezonePolicy
impl Hash for TimezonePolicy
Source§impl PartialEq for TimezonePolicy
impl PartialEq for TimezonePolicy
Source§fn eq(&self, other: &TimezonePolicy) -> bool
fn eq(&self, other: &TimezonePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TimezonePolicy
impl Eq for TimezonePolicy
impl StructuralPartialEq for TimezonePolicy
Auto Trait Implementations§
impl Freeze for TimezonePolicy
impl RefUnwindSafe for TimezonePolicy
impl Send for TimezonePolicy
impl Sync for TimezonePolicy
impl Unpin for TimezonePolicy
impl UnsafeUnpin for TimezonePolicy
impl UnwindSafe for TimezonePolicy
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