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: u32
§month: u8
§day: u8
§hour: u8
§minute: u8
§second: u8
§millisecond: Option<u16>
§tz: ASN1TimeZone
Implementations§
source§impl 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§
source§impl Clone for ASN1DateTime
impl Clone for ASN1DateTime
source§fn clone(&self) -> ASN1DateTime
fn clone(&self) -> ASN1DateTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ASN1DateTime
impl Debug for ASN1DateTime
source§impl Display for ASN1DateTime
impl Display for ASN1DateTime
source§impl Ord for ASN1DateTime
impl Ord for ASN1DateTime
source§fn cmp(&self, other: &ASN1DateTime) -> Ordering
fn cmp(&self, other: &ASN1DateTime) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ASN1DateTime
impl PartialEq for ASN1DateTime
source§fn 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 ==
.source§impl PartialOrd for ASN1DateTime
impl PartialOrd for ASN1DateTime
source§fn partial_cmp(&self, other: &ASN1DateTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ASN1DateTime) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Eq for ASN1DateTime
impl StructuralPartialEq for ASN1DateTime
Auto Trait Implementations§
impl Freeze for ASN1DateTime
impl RefUnwindSafe for ASN1DateTime
impl Send for ASN1DateTime
impl Sync for ASN1DateTime
impl Unpin for ASN1DateTime
impl UnwindSafe for ASN1DateTime
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)