Struct asn1_rs::ASN1DateTime 
source · [−]pub struct ASN1DateTime {
    pub year: u32,
    pub month: u8,
    pub day: u8,
    pub hour: u8,
    pub minute: u8,
    pub second: u8,
    pub millisecond: Option<u16>,
    pub tz: ASN1TimeZone,
}Fields
year: u32month: u8day: u8hour: u8minute: u8second: u8millisecond: Option<u16>tz: ASN1TimeZoneImplementations
sourceimpl ASN1DateTime
 
impl ASN1DateTime
pub const fn new(
    year: u32, 
    month: u8, 
    day: u8, 
    hour: u8, 
    minute: u8, 
    second: u8, 
    millisecond: Option<u16>, 
    tz: ASN1TimeZone
) -> Self
pub fn to_datetime(&self) -> Result<OffsetDateTime>
Trait Implementations
sourceimpl Clone for ASN1DateTime
 
impl Clone for ASN1DateTime
sourcefn clone(&self) -> ASN1DateTime
 
fn clone(&self) -> ASN1DateTime
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ASN1DateTime
 
impl Debug for ASN1DateTime
sourceimpl Display for ASN1DateTime
 
impl Display for ASN1DateTime
sourceimpl Ord for ASN1DateTime
 
impl Ord for ASN1DateTime
sourceimpl PartialEq<ASN1DateTime> for ASN1DateTime
 
impl PartialEq<ASN1DateTime> for ASN1DateTime
sourcefn eq(&self, other: &ASN1DateTime) -> bool
 
fn eq(&self, other: &ASN1DateTime) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ASN1DateTime) -> bool
 
fn ne(&self, other: &ASN1DateTime) -> bool
This method tests for !=.
sourceimpl PartialOrd<ASN1DateTime> for ASN1DateTime
 
impl PartialOrd<ASN1DateTime> for ASN1DateTime
sourcefn partial_cmp(&self, other: &ASN1DateTime) -> Option<Ordering>
 
fn partial_cmp(&self, other: &ASN1DateTime) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for ASN1DateTime
impl StructuralEq for ASN1DateTime
impl StructuralPartialEq for ASN1DateTime
Auto Trait Implementations
impl RefUnwindSafe for ASN1DateTime
impl Send for ASN1DateTime
impl Sync for ASN1DateTime
impl Unpin for ASN1DateTime
impl UnwindSafe for ASN1DateTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more