[][src]Struct rocket::config::Datetime

pub struct Datetime { /* fields omitted */ }

A parsed TOML datetime value

This structure is intended to represent the datetime primitive type that can be encoded into TOML documents. This type is a parsed version that contains all metadata internally.

Currently this type is intentionally conservative and only supports to_string as an accessor. Over time though it's intended that it'll grow more support!

Note that if you're using Deserialize to deserialize a TOML document, you can use this as a placeholder for where you're expecting a datetime to be specified.

Also note though that while this type implements Serialize and Deserialize it's only recommended to use this type with the TOML format, otherwise encoded in other formats it may look a little odd.

Trait Implementations

impl PartialEq<Datetime> for Datetime[src]

impl Serialize for Datetime[src]

impl Display for Datetime[src]

impl FromStr for Datetime[src]

type Err = DatetimeParseError

The associated error which can be returned from parsing.

impl Clone for Datetime[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Datetime> for Value[src]

impl<'de> Deserialize<'de> for Datetime[src]

impl Debug for Datetime[src]

Auto Trait Implementations

impl Send for Datetime

impl Sync for Datetime

Blanket Implementations

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

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

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> IntoCollection for T[src]

impl<T, I> AsResult for T where
    I: Input
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]