pub struct DormantAccountStrategy {
pub dormant_accounts: Vec<String>,
}Expand description
Strategy for dormant account activity.
Fields§
§dormant_accounts: Vec<String>List of dormant account codes to use.
Trait Implementations§
Source§impl Default for DormantAccountStrategy
impl Default for DormantAccountStrategy
Source§impl InjectionStrategy for DormantAccountStrategy
impl InjectionStrategy for DormantAccountStrategy
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 DormantAccountStrategy
impl RefUnwindSafe for DormantAccountStrategy
impl Send for DormantAccountStrategy
impl Sync for DormantAccountStrategy
impl Unpin for DormantAccountStrategy
impl UnwindSafe for DormantAccountStrategy
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