pub struct DateModificationStrategy {
pub max_backdate_days: i64,
pub max_future_days: i64,
pub cross_period_boundary: bool,
}Expand description
Strategy for modifying dates.
Fields§
§max_backdate_days: i64Maximum days to backdate.
max_future_days: i64Maximum days to future-date.
cross_period_boundary: boolWhether to cross period boundaries.
Trait Implementations§
Source§impl Default for DateModificationStrategy
impl Default for DateModificationStrategy
Source§impl InjectionStrategy for DateModificationStrategy
impl InjectionStrategy for DateModificationStrategy
Source§fn can_apply(&self, _entry: &JournalEntry) -> bool
fn can_apply(&self, _entry: &JournalEntry) -> bool
Whether this strategy can be applied to the given entry.
Source§fn apply<R: Rng>(
&self,
entry: &mut JournalEntry,
anomaly_type: &AnomalyType,
rng: &mut R,
) -> InjectionResult
fn apply<R: Rng>( &self, entry: &mut JournalEntry, anomaly_type: &AnomalyType, rng: &mut R, ) -> InjectionResult
Applies the strategy to modify an entry.
Auto Trait Implementations§
impl Freeze for DateModificationStrategy
impl RefUnwindSafe for DateModificationStrategy
impl Send for DateModificationStrategy
impl Sync for DateModificationStrategy
impl Unpin for DateModificationStrategy
impl UnwindSafe for DateModificationStrategy
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