Struct
DateTime
pub struct DateTime {
pub date: Date,
pub time: Time,
}Fields
date: Datetime: TimeTrait Implementations
impl Archive for DateTime
impl Archive for DateTime
const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moretype Archived = ArchivedDateTime
type Archived = ArchivedDateTime
The archived representation of this type. Read more
type Resolver = DateTimeResolver
type Resolver = DateTimeResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
impl Clone for DateTime
impl Clone for DateTime
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for DateTime
impl Debug for DateTime
impl<__D: Fallible + ?Sized> Deserialize<DateTime, __D> for Archived<DateTime>
impl<__D: Fallible + ?Sized> Deserialize<DateTime, __D> for Archived<DateTime>
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<DateTime, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<DateTime, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl Ord for DateTime
impl Ord for DateTime
impl PartialEq for DateTime
impl PartialEq for DateTime
impl PartialOrd for DateTime
impl PartialOrd for DateTime
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
1.0.0fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
1.0.0fn gt(&self, other: &Rhs) -> bool
fn gt(&self, other: &Rhs) -> bool
impl<__S: Fallible + ?Sized> Serialize<__S> for DateTime
impl<__S: Fallible + ?Sized> Serialize<__S> for DateTime
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.