[−][src]Enum delharc::TimestampResult
The type returned when parsing last modified timestamp.
Variants
The timestamp could not be parsed.
Naive(NaiveDateTime)
The timestamp value lacks the information about the time zone.
The timestamp value in the UTC time zone.
Implementations
impl TimestampResult
[src]
pub fn is_none(&self) -> bool
[src]
pub fn is_naive(&self) -> bool
[src]
pub fn is_utc(&self) -> bool
[src]
pub fn to_naive_utc(&self) -> Option<NaiveDateTime>
[src]
Returns a Naive
date and time variant as is or Utc
variant as naive date time in the UTC time zone.
pub fn to_naive_local(&self) -> Option<NaiveDateTime>
[src]
Returns a Naive
date and time variant as is or Utc
variant as naive date time in the Local
time zone.
pub fn to_utc(&self) -> Option<DateTime<Utc>>
[src]
Returns a date time in the UTC time zone.
In this instance the Naive
date and time variant is assumed to be in the UTC time zone.
pub fn to_local(&self) -> Option<DateTime<Local>>
[src]
Returns a date time in the Local
time zone.
In this instance the Naive
date and time variant is assumed to be in the Local
time zone.
Trait Implementations
impl Clone for TimestampResult
[src]
fn clone(&self) -> TimestampResult
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TimestampResult
[src]
impl Display for TimestampResult
[src]
impl Eq for TimestampResult
[src]
impl<T: TimeZone> From<DateTime<T>> for TimestampResult
[src]
impl<T: TimeZone> From<LocalResult<DateTime<T>>> for TimestampResult
[src]
fn from(dt: LocalResult<DateTime<T>>) -> Self
[src]
impl From<NaiveDateTime> for TimestampResult
[src]
fn from(dt: NaiveDateTime) -> Self
[src]
impl From<Option<NaiveDateTime>> for TimestampResult
[src]
fn from(dt: Option<NaiveDateTime>) -> Self
[src]
impl PartialEq<TimestampResult> for TimestampResult
[src]
fn eq(&self, other: &TimestampResult) -> bool
[src]
fn ne(&self, other: &TimestampResult) -> bool
[src]
impl StructuralEq for TimestampResult
[src]
impl StructuralPartialEq for TimestampResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimestampResult
impl Send for TimestampResult
impl Sync for TimestampResult
impl Unpin for TimestampResult
impl UnwindSafe for TimestampResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,