Struct
Metadata
pub struct Metadata {
pub created: DateTime,
pub accessed: Date,
pub modified: DateTime,
pub size: u64,
pub is_dir: bool,
}Fields
created: DateTimeaccessed: Datemodified: DateTimesize: u64is_dir: boolTrait Implementations
impl Archive for Metadata
impl Archive for Metadata
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 = ArchivedMetadata
type Archived = ArchivedMetadata
The archived representation of this type. Read more
type Resolver = MetadataResolver
type Resolver = MetadataResolver
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 Metadata
impl Clone for Metadata
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 Metadata
impl Debug for Metadata
impl<__D: Fallible + ?Sized> Deserialize<Metadata, __D> for Archived<Metadata>
impl<__D: Fallible + ?Sized> Deserialize<Metadata, __D> for Archived<Metadata>
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<Metadata, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<Metadata, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl<__S: Fallible + ?Sized> Serialize<__S> for Metadata
impl<__S: Fallible + ?Sized> Serialize<__S> for Metadata
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.