[][src]Struct toml_spanned_value::spanned_value::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 Display for Datetime[src]

impl PartialEq<Datetime> for Datetime[src]

impl StructuralPartialEq for Datetime[src]

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

impl FromStr for Datetime[src]

type Err = DatetimeParseError

The associated error which can be returned from parsing.

impl Serialize for Datetime[src]

impl Clone for Datetime[src]

impl Debug for Datetime[src]

impl From<Datetime> for ValueKind[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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