pub struct ModificationLog {
pub entries: Vec<ModificationLogEntry>,
}Expand description
Container for modification log entries, providing a complete audit trail.
This type serves as the “log” component (L) in the effect system’s
arity-3 monad GraphGeneratableEffectSafe<T, E, L>.
Fields§
§entries: Vec<ModificationLogEntry>Ordered list of log entries
Implementations§
Source§impl ModificationLog
impl ModificationLog
Sourcepub fn add_entry(&mut self, entry: ModificationLogEntry)
pub fn add_entry(&mut self, entry: ModificationLogEntry)
Adds a new entry to the log with automatic timestamping.
The timestamp is automatically set to the current time in microseconds since UNIX epoch, overriding any timestamp in the provided entry.
Sourcepub fn iter(&self) -> impl Iterator<Item = &ModificationLogEntry>
pub fn iter(&self) -> impl Iterator<Item = &ModificationLogEntry>
Returns an iterator over the log entries.
Trait Implementations§
Source§impl Clone for ModificationLog
impl Clone for ModificationLog
Source§fn clone(&self) -> ModificationLog
fn clone(&self) -> ModificationLog
Returns a duplicate 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 ModificationLog
impl Debug for ModificationLog
Source§impl Default for ModificationLog
impl Default for ModificationLog
Source§fn default() -> ModificationLog
fn default() -> ModificationLog
Returns the “default value” for a type. Read more
Source§impl LogAppend for ModificationLog
impl LogAppend for ModificationLog
Source§impl PartialEq for ModificationLog
impl PartialEq for ModificationLog
impl Eq for ModificationLog
impl StructuralPartialEq for ModificationLog
Auto Trait Implementations§
impl Freeze for ModificationLog
impl RefUnwindSafe for ModificationLog
impl Send for ModificationLog
impl Sync for ModificationLog
impl Unpin for ModificationLog
impl UnwindSafe for ModificationLog
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