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 for MetadataChange
impl PartialEq 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 ==
.impl Eq for MetadataChange
impl StructuralPartialEq for MetadataChange
Auto Trait Implementations§
impl Freeze for MetadataChange
impl RefUnwindSafe for MetadataChange
impl Send for MetadataChange
impl Sync for MetadataChange
impl Unpin for MetadataChange
impl UnwindSafe for MetadataChange
Blanket Implementations§
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