pub struct ProcessIssueConfig {
pub issue_type: ProcessIssueType,
pub weight: f64,
pub description_template: String,
}Expand description
Configuration for process issue injection.
Fields§
§issue_type: ProcessIssueTypeType of process issue.
weight: f64Relative weight for selection.
description_template: StringDescription template.
Implementations§
Source§impl ProcessIssueConfig
impl ProcessIssueConfig
Sourcepub fn all_defaults() -> Vec<Self>
pub fn all_defaults() -> Vec<Self>
Creates default configurations for all process issue types.
Sourcepub fn select_weighted<'a, R: Rng>(configs: &'a [Self], rng: &mut R) -> &'a Self
pub fn select_weighted<'a, R: Rng>(configs: &'a [Self], rng: &mut R) -> &'a Self
Selects a process issue type based on weights.
Trait Implementations§
Source§impl Clone for ProcessIssueConfig
impl Clone for ProcessIssueConfig
Source§fn clone(&self) -> ProcessIssueConfig
fn clone(&self) -> ProcessIssueConfig
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 moreAuto Trait Implementations§
impl Freeze for ProcessIssueConfig
impl RefUnwindSafe for ProcessIssueConfig
impl Send for ProcessIssueConfig
impl Sync for ProcessIssueConfig
impl Unpin for ProcessIssueConfig
impl UnwindSafe for ProcessIssueConfig
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