[][src]Struct rustsec::advisory::date::Date

pub struct Date(_);

Dates on advisories (RFC 3339)

Methods

impl Date[src]

pub fn to_chrono_date(&self) -> Result<Date<Utc>, Error>[src]

Convert an advisory RFC 3339 date into a chrono::Date

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

Borrow this date as a string reference

Trait Implementations

impl Into<String> for Date[src]

impl Eq for Date[src]

impl Clone for Date[src]

impl AsRef<str> for Date[src]

impl PartialOrd<Date> for Date[src]

impl PartialEq<Date> for Date[src]

impl Ord for Date[src]

impl Hash for Date[src]

impl Debug for Date[src]

impl FromStr for Date[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(rfc3339_date: &str) -> Result<Self, Error>[src]

Create a Date from the given RFC 3339 date string

impl Serialize for Date[src]

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

Auto Trait Implementations

impl Send for Date

impl Unpin for Date

impl Sync for Date

impl UnwindSafe for Date

impl RefUnwindSafe for Date

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]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]