[][src]Struct tiberius::time::DateTime2

pub struct DateTime2 { /* fields omitted */ }

A presentation of datetime2 type in the server.

Warning

It isn't recommended to use this type directly. For dealing with datetime2, use the chrono feature of this crate and its NaiveDateTime type.

Implementations

impl DateTime2[src]

pub fn new(date: Date, time: Time) -> Self[src]

Construct a new DateTime2 from the date and time components.

pub fn date(self) -> Date[src]

The date component.

pub fn time(self) -> Time[src]

The time component.

Trait Implementations

impl Clone for DateTime2[src]

impl Copy for DateTime2[src]

impl Debug for DateTime2[src]

impl PartialEq<DateTime2> for DateTime2[src]

impl StructuralPartialEq for DateTime2[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,