[][src]Struct threescalers::timestamp::Timestamp

pub struct Timestamp { /* fields omitted */ }

A timestamp represented as a String. Meant to be useful just for representation in API calls. If you need to operate on this, consider using instead SystemTime or DateTime and try_from() it.

Methods

impl Timestamp[src]

pub fn none() -> Option<&'static Timestamp>[src]

pub fn new(ts: i64) -> Self[src]

pub fn now() -> Self[src]

pub fn into_inner(self) -> String[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl Default for Timestamp[src]

impl Clone for Timestamp[src]

impl AsRef<str> for Timestamp[src]

impl From<i64> for Timestamp[src]

impl Debug for Timestamp[src]

impl TryFrom<SystemTime> for Timestamp[src]

type Error = <TimestampOffsetInt as TryFrom<AsSecsUnsignedInt>>::Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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