pub struct SmallDateTime(pub NaiveDateTime);Expand description
Wrapper that sends its inner chrono::NaiveDateTime as SQL Server
SMALLDATETIME (4-byte days-since-1900 + minutes-since-midnight) instead of
DATETIME2.
SMALLDATETIME has minute precision — seconds are rounded to the nearest minute on the wire (30s rounds up per SQL Server semantics). The valid range is 1900-01-01 through 2079-06-06.
Tuple Fields§
§0: NaiveDateTimeTrait Implementations§
Source§impl Clone for SmallDateTime
impl Clone for SmallDateTime
Source§fn clone(&self) -> SmallDateTime
fn clone(&self) -> SmallDateTime
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 SmallDateTime
impl Debug for SmallDateTime
Source§impl From<SmallDateTime> for SqlValue
Available on crate feature chrono only.
impl From<SmallDateTime> for SqlValue
Available on crate feature
chrono only.Source§fn from(v: SmallDateTime) -> Self
fn from(v: SmallDateTime) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SmallDateTime
impl PartialEq for SmallDateTime
Source§impl ToSql for SmallDateTime
Available on crate feature chrono only.
impl ToSql for SmallDateTime
Available on crate feature
chrono only.impl Copy for SmallDateTime
impl Eq for SmallDateTime
impl StructuralPartialEq for SmallDateTime
Auto Trait Implementations§
impl Freeze for SmallDateTime
impl RefUnwindSafe for SmallDateTime
impl Send for SmallDateTime
impl Sync for SmallDateTime
impl Unpin for SmallDateTime
impl UnsafeUnpin for SmallDateTime
impl UnwindSafe for SmallDateTime
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