[][src]Struct picky_asn1::date::Date

pub struct Date<TR: TimeRepr> { /* fields omitted */ }

A basic Date struct.

Implementations

impl<TR: TimeRepr> Date<TR>[src]

pub unsafe fn new_unchecked(
    year: u16,
    month: u8,
    day: u8,
    hour: u8,
    minute: u8,
    second: u8
) -> Date<TR>
[src]

Create a new Date without validation.

Safety

You have to make sure you're not building an invalid date.

pub fn new(
    year: u16,
    month: u8,
    day: u8,
    hour: u8,
    minute: u8,
    second: u8
) -> Option<Date<TR>>
[src]

pub fn year(&self) -> u16[src]

pub fn month(&self) -> u8[src]

pub fn day(&self) -> u8[src]

pub fn hour(&self) -> u8[src]

pub fn minute(&self) -> u8[src]

pub fn second(&self) -> u8[src]

Trait Implementations

impl<TR: Clone + TimeRepr> Clone for Date<TR>[src]

impl<TR: Debug + TimeRepr> Debug for Date<TR>[src]

impl<'de, TR: TimeRepr> Deserialize<'de> for Date<TR>[src]

impl<TR: Eq + TimeRepr> Eq for Date<TR>[src]

impl From<Date<GeneralizedTimeRepr>> for GeneralizedTimeAsn1[src]

impl From<Date<UTCTimeRepr>> for UTCTimeAsn1[src]

impl<TR: Hash + TimeRepr> Hash for Date<TR>[src]

impl Into<Date<GeneralizedTimeRepr>> for GeneralizedTimeAsn1[src]

impl Into<Date<UTCTimeRepr>> for UTCTimeAsn1[src]

impl<TR: Ord + TimeRepr> Ord for Date<TR>[src]

impl PartialEq<Date<GeneralizedTimeRepr>> for GeneralizedTimeAsn1[src]

impl<TR: PartialEq + TimeRepr> PartialEq<Date<TR>> for Date<TR>[src]

impl PartialEq<Date<UTCTimeRepr>> for UTCTimeAsn1[src]

impl<TR: PartialOrd + TimeRepr> PartialOrd<Date<TR>> for Date<TR>[src]

impl<TR: TimeRepr> Serialize for Date<TR>[src]

impl<TR: TimeRepr> StructuralEq for Date<TR>[src]

impl<TR: TimeRepr> StructuralPartialEq for Date<TR>[src]

Auto Trait Implementations

impl<TR> RefUnwindSafe for Date<TR> where
    TR: RefUnwindSafe

impl<TR> Send for Date<TR> where
    TR: Send

impl<TR> Sync for Date<TR> where
    TR: Sync

impl<TR> Unpin for Date<TR> where
    TR: Unpin

impl<TR> UnwindSafe for Date<TR> where
    TR: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.