Enum agde::fast_forward::MetadataChange
source · pub enum MetadataChange {
Modify(String, bool, Option<SystemTime>),
Delete(String),
}
Expand description
A single change between sets of metadata.
Variants§
Modify(String, bool, Option<SystemTime>)
True if the resource was just created.
The SystemTime
is the modify time of the target of the difference.
It represents the ResourceMeta::mtime_in_current
.
The SystemTime
is here to update the mtime of resources which did not get their mtime updated due to
the diff being empty.
Delete(String)
The resource was destroyed.
Implementations§
Trait Implementations§
source§impl Clone for MetadataChange
impl Clone for MetadataChange
source§fn clone(&self) -> MetadataChange
fn clone(&self) -> MetadataChange
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 MetadataChange
impl Debug for MetadataChange
source§impl PartialEq<MetadataChange> for MetadataChange
impl PartialEq<MetadataChange> for MetadataChange
source§fn eq(&self, other: &MetadataChange) -> bool
fn eq(&self, other: &MetadataChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.