Enum patch::FileMetadata
source · pub enum FileMetadata<'a> {
DateTime(DateTime<FixedOffset>),
Other(Cow<'a, str>),
}
Expand description
Additional metadata provided with the file path
Variants§
DateTime(DateTime<FixedOffset>)
A complete datetime, e.g. 2002-02-21 23:30:39.942229878 -0800
Other(Cow<'a, str>)
Any other string provided after the file path, e.g. git hash, unrecognized timestamp, etc.
Trait Implementations§
source§impl<'a> Clone for FileMetadata<'a>
impl<'a> Clone for FileMetadata<'a>
source§fn clone(&self) -> FileMetadata<'a>
fn clone(&self) -> FileMetadata<'a>
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<'a> Debug for FileMetadata<'a>
impl<'a> Debug for FileMetadata<'a>
source§impl<'a> Display for FileMetadata<'a>
impl<'a> Display for FileMetadata<'a>
source§impl<'a> PartialEq<FileMetadata<'a>> for FileMetadata<'a>
impl<'a> PartialEq<FileMetadata<'a>> for FileMetadata<'a>
source§fn eq(&self, other: &FileMetadata<'a>) -> bool
fn eq(&self, other: &FileMetadata<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.