pub struct AuditTrail { /* private fields */ }Expand description
What the audit trail needs: what it covers, who is acting, and what to add to the next commit.
Implementations§
Source§impl AuditTrail
impl AuditTrail
Sourcepub fn new(
settings: AuditSettings,
author: impl Fn() -> String + 'static,
) -> Self
pub fn new( settings: AuditSettings, author: impl Fn() -> String + 'static, ) -> Self
With these settings; author says who is acting.
Sourcepub fn write_with(&self, space: SpaceMaker)
pub fn write_with(&self, space: SpaceMaker)
Writes notes there right away, instead of with the next commit.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AuditTrail
impl !RefUnwindSafe for AuditTrail
impl !Send for AuditTrail
impl !Sync for AuditTrail
impl !UnwindSafe for AuditTrail
impl Unpin for AuditTrail
impl UnsafeUnpin for AuditTrail
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